src/video/ataricommon/SDL_xbiosevents.c
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/src/video/ataricommon/SDL_xbiosevents.c	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/src/video/ataricommon/SDL_xbiosevents.c	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -45,7 +45,7 @@
     1.4  /* Functions */
     1.5  
     1.6  void
     1.7 -SDL_AtariXbios_InstallVectors (int vectors_mask)
     1.8 +SDL_AtariXbios_InstallVectors(int vectors_mask)
     1.9  {
    1.10      void *oldpile;
    1.11  
    1.12 @@ -61,26 +61,26 @@
    1.13      }
    1.14  
    1.15      /* Read IKBD vectors base */
    1.16 -    kbdvecs = Kbdvbase ();
    1.17 +    kbdvecs = Kbdvbase();
    1.18  
    1.19      /* Go to supervisor mode */
    1.20 -    oldpile = (void *) Super (0);
    1.21 +    oldpile = (void *) Super(0);
    1.22  
    1.23      /* Install our vectors */
    1.24 -    SDL_AtariXbios_Install (kbdvecs,
    1.25 -                            (vectors_mask & ATARI_XBIOS_MOUSEEVENTS) ?
    1.26 -                            SDL_AtariXbios_MouseVector : NULL,
    1.27 -                            (vectors_mask & ATARI_XBIOS_JOYSTICKEVENTS) ?
    1.28 -                            SDL_AtariXbios_JoystickVector : NULL);
    1.29 +    SDL_AtariXbios_Install(kbdvecs,
    1.30 +                           (vectors_mask & ATARI_XBIOS_MOUSEEVENTS) ?
    1.31 +                           SDL_AtariXbios_MouseVector : NULL,
    1.32 +                           (vectors_mask & ATARI_XBIOS_JOYSTICKEVENTS) ?
    1.33 +                           SDL_AtariXbios_JoystickVector : NULL);
    1.34  
    1.35      /* Back to user mode */
    1.36 -    Super (oldpile);
    1.37 +    Super(oldpile);
    1.38  
    1.39      SDL_AtariXbios_enabled = 1;
    1.40  }
    1.41  
    1.42  void
    1.43 -SDL_AtariXbios_RestoreVectors (void)
    1.44 +SDL_AtariXbios_RestoreVectors(void)
    1.45  {
    1.46      void *oldpile;
    1.47  
    1.48 @@ -89,20 +89,20 @@
    1.49      }
    1.50  
    1.51      /* Read IKBD vectors base */
    1.52 -    kbdvecs = Kbdvbase ();
    1.53 +    kbdvecs = Kbdvbase();
    1.54  
    1.55      /* Go to supervisor mode */
    1.56 -    oldpile = (void *) Super (NULL);
    1.57 +    oldpile = (void *) Super(NULL);
    1.58  
    1.59      /* Reinstall system vector */
    1.60 -    SDL_AtariXbios_Restore (kbdvecs);
    1.61 +    SDL_AtariXbios_Restore(kbdvecs);
    1.62  
    1.63      /* Back to user mode */
    1.64 -    Super (oldpile);
    1.65 +    Super(oldpile);
    1.66  }
    1.67  
    1.68  static int
    1.69 -atari_GetButton (int button)
    1.70 +atari_GetButton(int button)
    1.71  {
    1.72      switch (button) {
    1.73      case 0:
    1.74 @@ -116,7 +116,7 @@
    1.75  }
    1.76  
    1.77  void
    1.78 -SDL_AtariXbios_PostMouseEvents (_THIS, SDL_bool buttonEvents)
    1.79 +SDL_AtariXbios_PostMouseEvents(_THIS, SDL_bool buttonEvents)
    1.80  {
    1.81      if (SDL_AtariXbios_enabled == 0) {
    1.82          return;
    1.83 @@ -124,8 +124,8 @@
    1.84  
    1.85      /* Mouse motion ? */
    1.86      if (SDL_AtariXbios_mousex || SDL_AtariXbios_mousey) {
    1.87 -        SDL_PrivateMouseMotion (0, 1, SDL_AtariXbios_mousex,
    1.88 -                                SDL_AtariXbios_mousey);
    1.89 +        SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex,
    1.90 +                               SDL_AtariXbios_mousey);
    1.91          SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0;
    1.92      }
    1.93  
    1.94 @@ -140,12 +140,11 @@
    1.95              prevbutton = atari_prevmouseb & (1 << i);
    1.96  
    1.97              if (curbutton && !prevbutton) {
    1.98 -                SDL_PrivateMouseButton (SDL_PRESSED,
    1.99 -                                        atari_GetButton (i), 0, 0);
   1.100 +                SDL_PrivateMouseButton(SDL_PRESSED, atari_GetButton(i), 0, 0);
   1.101              }
   1.102              if (!curbutton && prevbutton) {
   1.103 -                SDL_PrivateMouseButton (SDL_RELEASED,
   1.104 -                                        atari_GetButton (i), 0, 0);
   1.105 +                SDL_PrivateMouseButton(SDL_RELEASED,
   1.106 +                                       atari_GetButton(i), 0, 0);
   1.107              }
   1.108          }
   1.109          atari_prevmouseb = SDL_AtariXbios_mouseb;