Skip to content

Commit

Permalink
Fixed spurious keypress at startup on BeOS
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 11, 2002
1 parent 37cf260 commit 0c22a9a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/video/bwindow/SDL_sysevents.cc
Expand Up @@ -288,9 +288,12 @@ void BE_InitOSKeymap(_THIS)
{
unsigned int i;

/* Initialize all the key states as "up" */
/* Initialize the keyboard state */
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 */
/* Source: <be/interface/InterfaceDefs.h> and BeOS keyboard info */
Expand Down

0 comments on commit 0c22a9a

Please sign in to comment.