Files
sbox-public/engine/Definitions/engine/gamecontroller.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

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 );
}