Skip to content

Commit

Permalink
fix mousemove
Browse files Browse the repository at this point in the history
  • Loading branch information
nokotan committed May 14, 2023
1 parent 980b22e commit 0b6ea96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HTML5/DxInputHTML5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,9 @@ static EM_BOOL onMouseWheel(int eventType, const EmscriptenWheelEvent *wheelEven
InputSysData.PF.InputInfo[ InputNo ].AxisX = wheelEvent->mouse.targetX ;
InputSysData.PF.InputInfo[ InputNo ].AxisY = wheelEvent->mouse.targetY ;
InputSysData.PF.InputInfo[ InputNo ].Wheel = wheelEvent->deltaX ;

InputSysData.PF.MouseX = InputSysData.PF.InputInfo[ InputNo ].AxisX ;
InputSysData.PF.MouseY = InputSysData.PF.InputInfo[ InputNo ].AxisY ;

InputSysData.MouseMoveZ += InputSysData.PF.InputInfo[ InputNo ].Wheel ;

Expand Down

0 comments on commit 0b6ea96

Please sign in to comment.