src/video/ataricommon/SDL_gemdosevents.c
changeset 2043 adf732f1f016
parent 2033 b657f0bc72c2
child 2859 99210400e8b9
     1.1 --- a/src/video/ataricommon/SDL_gemdosevents.c	Sun Sep 24 15:56:36 2006 +0000
     1.2 +++ b/src/video/ataricommon/SDL_gemdosevents.c	Sun Sep 24 15:56:55 2006 +0000
     1.3 @@ -45,9 +45,10 @@
     1.4  static unsigned char gemdos_previouskeyboard[ATARIBIOS_MAXKEYS];
     1.5  static SDL_bool use_dev_mouse = SDL_FALSE;
     1.6  
     1.7 -enum {
     1.8 -	DEV_BUSY=0,
     1.9 -	DEV_READY
    1.10 +enum
    1.11 +{
    1.12 +    DEV_BUSY = 0,
    1.13 +    DEV_READY
    1.14  };
    1.15  
    1.16  static void UpdateSpecialKeys(int special_keys_state);
    1.17 @@ -68,8 +69,8 @@
    1.18          vectors_mask |= ATARI_XBIOS_MOUSEEVENTS;        /* XBIOS mouse events */
    1.19      }
    1.20      /*if (Getcookie(C_MiNT, &dummy) == C_FOUND) {
    1.21 -        vectors_mask = 0;
    1.22 -    }*/
    1.23 +       vectors_mask = 0;
    1.24 +       } */
    1.25  
    1.26      SDL_AtariXbios_InstallVectors(vectors_mask);
    1.27  }
    1.28 @@ -85,8 +86,9 @@
    1.29  
    1.30      while (Cconis() != DEV_BUSY) {
    1.31          unsigned long key_pressed;
    1.32 -        key_pressed=Cnecin();
    1.33 -        gemdos_currentkeyboard[(key_pressed>>16)&(ATARIBIOS_MAXKEYS-1)]=0xFF;
    1.34 +        key_pressed = Cnecin();
    1.35 +        gemdos_currentkeyboard[(key_pressed >> 16) & (ATARIBIOS_MAXKEYS - 1)]
    1.36 +            = 0xFF;
    1.37      }
    1.38  
    1.39      /* Read special keys */
    1.40 @@ -102,7 +104,8 @@
    1.41          /* Key unpressed ? */
    1.42          if (gemdos_previouskeyboard[i] && !gemdos_currentkeyboard[i])
    1.43              SDL_PrivateKeyboard(SDL_RELEASED,
    1.44 -                                SDL_Atari_TranslateKey(i, &keysym, SDL_FALSE));
    1.45 +                                SDL_Atari_TranslateKey(i, &keysym,
    1.46 +                                                       SDL_FALSE));
    1.47      }
    1.48  
    1.49      if (use_dev_mouse) {