Xbox: screen can only be resized when in the screen center screen.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user