Mercurial > mplayer.hg
diff 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 |
line wrap: on
line diff
--- a/input/input.h Thu Mar 24 21:58:06 2011 +0000 +++ b/input/input.h Thu Mar 24 22:11:18 2011 +0000 @@ -191,6 +191,8 @@ #define MP_KEY_DOWN (1<<29) // Use this when the key shouldn't be auto-repeated (like mouse buttons) #define MP_NO_REPEAT_KEY (1<<28) +// Special value to mark all keys as "up" +#define MP_KEY_RELEASE_ALL (1<<27) #ifndef MP_MAX_KEY_DOWN #define MP_MAX_KEY_DOWN 32