Files
sbox-public/engine/Definitions/common/inputservice.def
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

24 lines
579 B
Modula-2

#include "engine2/iinputservice.h"
native enum ButtonCode_t is NativeEngine.ButtonCode;
native enum GameControllerCode_t is NativeEngine.GameControllerCode;
native enum GameControllerAxis_t is NativeEngine.GameControllerAxis;
native enum GameControllerType_t is NativeEngine.GameControllerType;
native accessor g_pInputService
{
bool IsAppActive();
// Some key trapping stuff here that could be useful
bool HasMouseFocus();
string Key_NameForBinding( string binding );
string GetBinding( ButtonCode button );
void SetCursorPosition( int x, int y );
void Pump();
}