bindbc.jsl.joyshocklibrary

Members

Enums

ButtonMasks
enum ButtonMasks

API difference: I decided to use an enumerator instead of individually defined values.

ButtonOffsets
enum ButtonOffsets

API difference: I decided to use an enumerator instead of individually defined values.

JoyConSplitType
enum JoyConSplitType

API difference: I decided to use an enumerator instead of individually defined values.

JoyShockTypes
enum JoyShockTypes

API difference: I decided to use an enumerator instead of individually defined values.

Functions

JslGetControllerColour
int JslGetControllerColour(int deviceId)

what colour is the controller (not all controllers support this; those that don't will report white)

JslGetControllerSplitType
int JslGetControllerSplitType(int deviceId)

is this a left, right, or full controller?

JslGetControllerType
int JslGetControllerType(int deviceId)

what kind of controller is this?

JslSetCallback
void JslSetCallback(void function(int, JOY_SHOCK_STATE, JOY_SHOCK_STATE, IMU_STATE, IMU_STATE, float) callback)

this function will get called for each input event from each controller

JslSetLightColour
void JslSetLightColour(int deviceId, int colour)

set controller light colour (not all controllers have a light whose colour can be set, but that just means nothing will be done when this is called -- no harm)

JslSetPlayerNumber
void JslSetPlayerNumber(int deviceId, int number)

set controller player number indicator (not all controllers have a number indicator which can be set, but that just means nothing will be done when this is called -- no harm)

JslSetRumble
void JslSetRumble(int deviceId, int smallRumble, int bigRumble)

set controller rumble

Meta