mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-30 14:53:39 +00:00
(360) Cleanup to viewport resize function
This commit is contained in:
parent
d7f8f847e5
commit
1355f1204d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user