Fixed spurious keypress at startup on BeOS
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40340
This commit is contained in:
parent
fff616907d
commit
bb5882bafe
1 changed files with 5 additions and 2 deletions
|
@ -288,9 +288,12 @@ void BE_InitOSKeymap(_THIS)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
/* Initialize all the key states as "up" */
|
/* Initialize the keyboard state */
|
||||||
key_flip = 0;
|
key_flip = 0;
|
||||||
memset(keyinfo[key_flip].key_states, 0, 16);
|
get_key_info(&keyinfo[key_flip]);
|
||||||
|
memcpy(keyinfo[!key_flip].key_states,
|
||||||
|
keyinfo[key_flip].key_states,
|
||||||
|
SDL_TABLESIZE(keyinfo[key_flip].key_states));
|
||||||
|
|
||||||
/* Initialize the BeOS key translation table */
|
/* Initialize the BeOS key translation table */
|
||||||
/* Source: <be/interface/InterfaceDefs.h> and BeOS keyboard info */
|
/* Source: <be/interface/InterfaceDefs.h> and BeOS keyboard info */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue