Confused about SDL_SwapLE16 |
hondres
|
I'm trying to make the open-source game engine Godot compatible with SDL2 gamepad mappings. I'm a bit confused about the way joystick GUIDs are generated.
For example this line:
As I understand it, SDL_SwapLE should only byteswap the value on big-endian systems, and the macro does indeed look fine to me. However when I tried to implement it (on a LE machine), I had to explicitly byteswap those values in order to get the same GUIDs sdl does. Does anyone have some information on what's going on here? |
|||||||||||||
|