mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 14:38:13 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
24 lines
579 B
Modula-2
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();
|
|
}
|