mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-02 08:50:18 -04:00
* InputRouter uses scan codes (make AZERTY not shit), UI related input remains key codes * Input.GetGlyph and Input.GetButtonOrigin return the local key name e.g if forward is bound to "W" it will show as "Z" on azerty layouts
20 lines
1006 B
Modula-2
20 lines
1006 B
Modula-2
managed static class Sandbox.Engine.InputRouter
|
|
{
|
|
static void OnMouseMotion( float dx, float dy );
|
|
static void OnMousePositionChange( float x, float y, float dx, float dy );
|
|
static void OnMouseButton( ButtonCode button, bool state, int ikeymods );
|
|
static void OnKey( ButtonCode scanButtonCode, ButtonCode keyButtonCode, bool state, bool repeating, int ikeymods );
|
|
static void OnText( uint key );
|
|
static void OnWindowActive( bool active );
|
|
static void OnMouseWheel( int x, int y, int ikeymods );
|
|
static void OnImeStart();
|
|
static void OnImeComposition( string text, bool final );
|
|
static void OnImeEnd();
|
|
static void OnGameControllerButton( int deviceId, GameControllerCode button, bool state );
|
|
static void OnGameControllerAxis( int deviceId, GameControllerAxis axis, int value );
|
|
static void OnGameControllerConnected( int joystickId, int deviceId );
|
|
static void OnGameControllerDisconnected( int deviceId );
|
|
static void OnConsoleCommand( string command );
|
|
static void CloseApplication();
|
|
}
|