mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-28 08:48:43 +00:00
Update src/joystick/hidapi/SDL_hidapi_steam_triton.c
This commit is contained in:
parent
f52e956b8d
commit
a6aa798f68
1 changed files with 2 additions and 2 deletions
|
|
@ -254,8 +254,8 @@ static void HIDAPI_DriverSteamTriton_HandleState(SDL_HIDAPI_Device *device,
|
|||
bool downRight = pTritonReport->buttons & TRITON_RIGHT_TOUCHPAD_TOUCH ? true : false;
|
||||
if (downLeft || ctx->left_touch_down){
|
||||
if (downLeft){
|
||||
ctx->left_touch_x=pTritonReport->sLeftPadX / 65536.0f + 0.5f;
|
||||
ctx->left_touch_y=-(float)pTritonReport->sLeftPadY / 65536.0f + 0.5f;
|
||||
ctx->left_touch_x = pTritonReport->sLeftPadX / 65536.0f + 0.5f;
|
||||
ctx->left_touch_y = -(float)pTritonReport->sLeftPadY / 65536.0f + 0.5f;
|
||||
|
||||
}
|
||||
SDL_SendJoystickTouchpad(timestamp, joystick, 0, 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue