comparison input/input.h @ 33017:cc8cef372901

Make "stuck keys" problem impossibly by resetting the internal key state when our key fifo overflowed.
author reimar
date Thu, 24 Mar 2011 22:11:18 +0000
parents faefba58f413
children f05c75392897
comparison
equal deleted inserted replaced
33016:88a7bd86e3ac 33017:cc8cef372901
189 // events. Key up is the default, to send a key down you must use the 189 // events. Key up is the default, to send a key down you must use the
190 // OR operator between the key code and MP_KEY_DOWN. 190 // OR operator between the key code and MP_KEY_DOWN.
191 #define MP_KEY_DOWN (1<<29) 191 #define MP_KEY_DOWN (1<<29)
192 // Use this when the key shouldn't be auto-repeated (like mouse buttons) 192 // Use this when the key shouldn't be auto-repeated (like mouse buttons)
193 #define MP_NO_REPEAT_KEY (1<<28) 193 #define MP_NO_REPEAT_KEY (1<<28)
194 // Special value to mark all keys as "up"
195 #define MP_KEY_RELEASE_ALL (1<<27)
194 196
195 #ifndef MP_MAX_KEY_DOWN 197 #ifndef MP_MAX_KEY_DOWN
196 #define MP_MAX_KEY_DOWN 32 198 #define MP_MAX_KEY_DOWN 32
197 #endif 199 #endif
198 200