Thanks for the correction :POn Mon, Dec 10, 2012 at 10:19 AM, Jonathan Dearborn wrote:
If the ID is a pointer or an incremental index, then it’s not limited to
64 touches. The future is fingerful.Jonny D
On Mon, Dec 10, 2012 at 9:33 AM, Alex Barry <@Alex_Barry> wrote:
wboe,
You have to remember the cross-platform nature of SDL to understand why
the finger is a Sint64. On some platforms, you literally get a finger
index/id for each touch, so having an integer makes sense, and I don’t see
the technology handling 64 fingers any time soon. For the platforms that
do use internal structures, Sam/Ryan/whomever had to decide if it was
better to use some sort of union with an open pointer available to the dev,
or do some casting with the Sint64. They obviously chose the route of
casting because it can all be done safely internally so the touch api is
the same across all platforms.For those worried about have 128 bit numbers, that’s ridiculous. 64 bit
technology for everyday use is still fairly young. The processor bits
usually only changes when we reach some sort of limit in RAM, and do you
know the max amount of RAM 64 bit can handle? 128GB - that’s more than any
current computer has enough RAM slots for, and I suspect that’s not going
to change for at least a few years, therefore it will be highly unlikely
that within SDL 2.x’s lifespan we’ll need to support 128 bit computing.
Bringing that back to touch devices, it is extremely unlikely that for
index-based touch events that you will ever have more than 64 fingers at
once - if you think one day there will be some sort of common-use
table/surface for roughly 6 people to use simultaneously with both hands, I
don’t see a reasonable use case for that.I also don’t see a weighing reason why any dev should go back through the
touch events and change it to a pointer. The Sint64 works quite well for
all supported platforms.To explain Sam’s response, he is essentially saying there were multiple
ways (“doors”) that are all logically correct to take, and they chose to
use Sint64 rather than pointers or some sort of custom SDL structure.-Alex
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org