mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-29 10:43:46 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
19 lines
577 B
Modula-2
19 lines
577 B
Modula-2
#include "gamecontroller.h"
|
|
|
|
native static class NativeEngine.SDLGameController
|
|
{
|
|
int GetAxis( int joystickId, GameControllerAxis_t axis );
|
|
GameControllerType_t GetControllerType( int joystickId );
|
|
bool Close( int joystickId );
|
|
|
|
// Features
|
|
bool SetLEDColor( int joystickId, int red, int green, int blue );
|
|
|
|
// Haptics
|
|
bool Rumble( int joystickId, int lowFreq, int highFreq, int duration );
|
|
bool RumbleTriggers( int joystickId, int lowFreq, int highFreq, int duration );
|
|
|
|
// Sensors
|
|
Vector GetGyroscope( int joystickId );
|
|
Vector GetAccelerometer( int joystickId );
|
|
} |