mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
inputsystem: fix UB in touch events callback, make touch more responsive
This commit is contained in:
+1
-1
@@ -790,7 +790,7 @@ public:
|
||||
|
||||
virtual bool IsConnectedUserInfoChangeAllowed( IConVar *pCvar ) = 0;
|
||||
|
||||
virtual void IN_TouchEvent( uint data, uint data2, uint data3, uint data4 ) = 0;
|
||||
virtual void IN_TouchEvent( int type, int fingerId, int x, int y ) = 0;
|
||||
};
|
||||
|
||||
#define CLIENT_DLL_INTERFACE_VERSION "VClient017"
|
||||
|
||||
@@ -119,6 +119,7 @@ public:
|
||||
|
||||
// read and clear accumulated raw input values
|
||||
virtual bool GetRawMouseAccumulators( int& accumX, int& accumY ) = 0;
|
||||
virtual bool GetTouchAccumulators( int fingerId, float &dx, float &dy ) = 0;
|
||||
|
||||
// tell the input system that we're not a game, we're console text mode.
|
||||
// this is used for dedicated servers to not initialize joystick system.
|
||||
|
||||
Reference in New Issue
Block a user