ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/padSDL/padsdl.c
(Generate patch)

Comparing padSDL/padsdl.c (file contents):
Revision 1.1 by cebix, 2003-02-06T21:54:03Z vs.
Revision 1.2 by cebix, 2003-02-14T22:06:54Z

# Line 110 | Line 110 | static read_pad(SDL_Joystick *js, int nu
110                  if (SDL_JoystickGetButton(js, i) == SDL_PRESSED)
111                          buttons |= (1 << button_map[i]);
112          }
113 + #ifdef EPSXE
114 +        pad->buttonStatus = ~((buttons >> 8) | (buttons << 8));
115 + #else
116          pad->buttonStatus = ~buttons;
117 + #endif
118  
119          if (num_axes >= 2) {
120                  pad->leftJoyX = SDL_JoystickGetAxis(js, 0) / 256 + 128;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines