DarthMike / indielib-crossplatform

IndieLib is a cross-platform Game Graphics engine. Main focus is OpenGL ES 2.0 for mobile iOS operating system, and OpenGL desktop. **NOT SUPPORTED ANYMORE**
zlib License
61 stars 27 forks source link

Handle properly new events from SDL 2.0 #24

Open M-F-K opened 12 years ago

M-F-K commented 12 years ago

After migrating to SDL 2.0, events are not handled: SDL_TEXTEDITING, /*< Keyboard text editing (composition) / SDLTEXTINPUT, /**< Keyboard text input / / Tablet or multiple mice input device events / SDL_INPUTMOTION = 0x500, /< Input moved / SDL_INPUTBUTTONDOWN, /__< Input button pressed / SDL_INPUTBUTTONUP, /< Input button released / SDL_INPUTWHEEL, /__< Input wheel motion / SDL_INPUTPROXIMITYIN, /__< Input pen entered proximity / SDLINPUTPROXIMITYOUT, /< Input pen left proximity */

/* Joystick events */
SDL_JOYAXISMOTION  = 0x600, /**< Joystick axis motion */
SDL_JOYBALLMOTION,          /**< Joystick trackball motion */
SDL_JOYHATMOTION,           /**< Joystick hat position change */
SDL_JOYBUTTONDOWN,          /**< Joystick button pressed */
SDL_JOYBUTTONUP,            /**< Joystick button released */

/* Touch events */
SDL_FINGERDOWN      = 0x700,
SDL_FINGERUP,
SDL_FINGERMOTION,
SDL_TOUCHBUTTONDOWN,
SDL_TOUCHBUTTONUP,    

/* Gesture events */
SDL_DOLLARGESTURE   = 0x800,
SDL_DOLLARRECORD,
SDL_MULTIGESTURE,

We need some for mobile devices (touches) and others should be offered as part of IndieLib handling events for user


rev. 583 fixes SDL_MOUSEWHEEL