(360) Cleanup to viewport resize function

This commit is contained in:
TwinAphex51224 2012-05-22 20:39:27 +02:00
parent d7f8f847e5
commit 1355f1204d

View File

@ -108,18 +108,10 @@ void xdk360_input_map_dpad_to_stick(uint32_t map_dpad_enum, uint32_t controller_
void xdk360_input_loop(void)
{
int custom_viewport_x_tmp, custom_viewport_y_tmp, custom_viewport_width_tmp,
custom_viewport_height_tmp;
XINPUT_STATE state;
XInputGetState(0, &state);
custom_viewport_x_tmp = g_console.viewports.custom_vp.x;
custom_viewport_y_tmp = g_console.viewports.custom_vp.y;
custom_viewport_width_tmp = g_console.viewports.custom_vp.width;
custom_viewport_height_tmp = g_console.viewports.custom_vp.height;
if(state.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_LEFT || state.Gamepad.sThumbLX < -DEADZONE)
g_console.viewports.custom_vp.x -= 1;
else if (state.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_RIGHT || state.Gamepad.sThumbLX > DEADZONE)