Xbox: screen can only be resized when in the screen center screen.

This commit is contained in:
Ryan Dortmans
2004-09-09 16:15:41 +00:00
parent 1430f26179
commit f7fe3d007f
@@ -232,8 +232,13 @@ void InputHandler_SDL::Update(float fDeltaTime)
case SDL_JOYAXISMOTION: case SDL_JOYAXISMOTION:
{ {
#ifdef _XBOX #ifdef _XBOX
if(PREFSMAN->resizing)
{
/* XXX: If you want to adjust the screen, use the menu. Screen /* XXX: If you want to adjust the screen, use the menu. Screen
* adjustment code doesn't belong in the input driver. */ * adjustment code doesn't belong in the input driver. */
/* As far as I can tell, you can't send on the analog values
* of the joysticks, so this is probably the only place for it.
* This should limit it to the centering screen though */
resolutionChanged = 1; resolutionChanged = 1;
if ( abs(event.jaxis.value) > 15600 ) if ( abs(event.jaxis.value) > 15600 )
{ {
@@ -255,6 +260,7 @@ void InputHandler_SDL::Update(float fDeltaTime)
case 3: lastValY2 = 0; break; case 3: lastValY2 = 0; break;
} }
} }
}
#else #else
InputDevice i = InputDevice(DEVICE_JOY1 + event.jaxis.which); InputDevice i = InputDevice(DEVICE_JOY1 + event.jaxis.which);
JoystickButton neg = (JoystickButton)(JOY_LEFT+2*event.jaxis.axis); JoystickButton neg = (JoystickButton)(JOY_LEFT+2*event.jaxis.axis);