Rewired_OSX
Allows access to controller-specific functions.
Sets a trigger effect.
The trigger which will play the effect.
The trigger effect.
True on success, false if an error occurred.
Gets the current trigger effect states.
Trigger effect states.
Gets the value from the accelerometer converted to Unity's coordinate system.
The value returned could be thought of as a gravity vector and user acceleration combined.
If using this value to apply a force in the direction of the vector, invert each axis first.
This value represents the last value reported by the accelerometer.
Accelerometer data
Gets the raw value from the accelerometer as reported by the device.
Note: Device coordinate system does not match Unity's.
Raw accelerometer data
Gets the raw value from the gyroscope as reported by the device.
Note: Device coordinate system does not match Unity's.
Raw gyroscope data
Gets the value from the gyroscope converted to Unity's coordinate system.
Gyroscope data
Gets the orientation converted to Unity's coordinate system.
Orientation
Resets the orientation.
Sets the light color. Alpha can be used to set intensity.
Light color
Sets the light color.
Red channel [0.0 - 1.0]
Green channel [0.0 - 1.0]
Blue channel [0.0 - 1.0]
Sets the light color.
Red channel [0.0 - 1.0]
Green channel [0.0 - 1.0]
Blue channel [0.0 - 1.0]
Intensity [0.0 - 1.0]
Number of simultaneous touches supported by this device.
The current touch count.
Gets the touch id for the touch at the specified index.
Index of the touch
Gets the touch position for a particular index normalized to a 0 - 1 range. (Left = 0, Bottom = 0)
The index of the touch for which to return position.
X/Y position of the touch [0 - 1]
True if the touch at index is currently touching. False if there is no touch at index.
Gets the touch position for a particular touch id normalized to a 0 - 1 range. (Left = 0, Bottom = 0)
The id of the touch for which to return position.
X/Y position of the touch [0 - 1]
True if the touch at touchId is currently touching. False if there is no touch at touchId.
Determines if the current touch id is valid for any currently active touch.
The index of the touch
True/False
Determines if the current touch id is valid for any currently active touch.
The id of the touch
True/False
Sets vibration level for left and right motors.
float: 0.0 - 1.0
float: 0.0 - 1.0
Sets vibration level for left and right motors.
float: 0.0 - 1.0
float: 0.0 - 1.0
Length of time in seconds to activate the left motor before it stops. [0 = Infinite]
Length of time in seconds to activate the right motor before it stops. [0 = Infinite]
The number of vibration motors in this controller.
Sets vibration level for a motor at a specified index.
Motor index
Motor level [float: 0.0 - 1.0]
Sets vibration level for a motor at a specified index with a timeout.
Motor index
Motor level [float: 0.0 - 1.0]
Length of time in seconds to activate the motor before it stops. [0 = Infinite]
Sets vibration level for a motor at a specified index.
Motor index
Motor level [float: 0.0 - 1.0]
Stop other motors?
Sets vibration level for a motor at a specified index with a timeout.
Motor index
Motor level [float: 0.0 - 1.0]
Length of time in seconds to activate the motor before it stops. [0 = Infinite]
Stop other motors?
Gets vibration level for a motor at a specified index.
Motor index
Motor level [float: 0.0 - 1.0]
Stops vibration on all motors.
Allows access to controller-specific functions.
Gets the value from the accelerometer converted to Unity's coordinate system.
The value returned could be thought of as a gravity vector and user acceleration combined.
If using this value to apply a force in the direction of the vector, invert each axis first.
This value represents the last value reported by the accelerometer.
Accelerometer data
Gets the raw value from the accelerometer as reported by the device.
Note: Device coordinate system does not match Unity's.
Raw accelerometer data
Gets the raw value from the gyroscope as reported by the device.
Note: Device coordinate system does not match Unity's.
Raw gyroscope data
Gets the value from the gyroscope converted to Unity's coordinate system.
Gyroscope data
Gets the orientation converted to Unity's coordinate system.
Orientation
Resets the orientation.
Sets the light color. Alpha can be used to set intensity.
Light color
Sets the light color.
Red channel [0.0 - 1.0]
Green channel [0.0 - 1.0]
Blue channel [0.0 - 1.0]
Sets the light color.
Red channel [0.0 - 1.0]
Green channel [0.0 - 1.0]
Blue channel [0.0 - 1.0]
Intensity [0.0 - 1.0]
Number of simultaneous touches supported by this device.
The current touch count.
Gets the touch id for the touch at the specified index.
Index of the touch
Gets the touch position for a particular index normalized to a 0 - 1 range. (Left = 0, Bottom = 0)
The index of the touch for which to return position.
X/Y position of the touch [0 - 1]
True if the touch at index is currently touching. False if there is no touch at index.
Gets the touch position for a particular touch id normalized to a 0 - 1 range. (Left = 0, Bottom = 0)
The id of the touch for which to return position.
X/Y position of the touch [0 - 1]
True if the touch at touchId is currently touching. False if there is no touch at touchId.
Determines if the current touch id is valid for any currently active touch.
The index of the touch
True/False
Determines if the current touch id is valid for any currently active touch.
The id of the touch
True/False
Sets vibration level for left and right motors.
float: 0.0 - 1.0
float: 0.0 - 1.0
Sets vibration level for left and right motors.
float: 0.0 - 1.0
float: 0.0 - 1.0
Length of time in seconds to activate the left motor before it stops. [0 = Infinite]
Length of time in seconds to activate the right motor before it stops. [0 = Infinite]
The number of vibration motors in this controller.
Sets vibration level for a motor at a specified index.
Motor index
Motor level [float: 0.0 - 1.0]
Sets vibration level for a motor at a specified index with a timeout.
Motor index
Motor level [float: 0.0 - 1.0]
Length of time in seconds to activate the motor before it stops. [0 = Infinite]
Sets vibration level for a motor at a specified index.
Motor index
Motor level [float: 0.0 - 1.0]
Stop other motors?
Sets vibration level for a motor at a specified index with a timeout.
Motor index
Motor level [float: 0.0 - 1.0]
Length of time in seconds to activate the motor before it stops. [0 = Infinite]
Stop other motors?
Gets vibration level for a motor at a specified index.
Motor index
Motor level [float: 0.0 - 1.0]
Stops vibration on all motors.
Allows access to controller-specific functions.
Gets the native player index.
This corresponds to playerIndex in the Game Controller framework.
This is only useful for direct interaction with the Game Controller framework.
Gets the native pointer to the GCController object.
This is only useful for direct interaction with the Game Controller framework.
If the pointer is unavailable or invalid, returns IntPtr.Zero.
Gets the native system symbol name of a controller element.
If the element has been remapped by the user in the OS, this will return the remapped symbol name.
Native system symbol name of a controller element.
Gets the native un-remapped system symbol name of a controller element.
Un-remapped system symbol name of a controller element.
Gets the native localized name of a controller element.
If the element has been remapped by the user in the OS, this will return the remapped localized name.
Native localized name of a controller element.
Gets the native un-remapped localized name of a controller element.
Un-remapped localized name of a controller element.
Provides access to input-related methods and settings at runtime.
Provides access to controller assignment-related settings at runtime.
If enabled, Joysticks will be assigned based on the GCController player index associated with the controller to a specific Rewired Player.
The GCController player index to Rewired Player associations must be set up using the other functions in this class before they will have any effect.
Get the native GCController player index associated with the Rewired Player.
Rewired player
A list to receive the native GCController player indices. The incoming list will be cleared by the function.
The number of native GCController player indices returned in the results list.
Get the native GCController player indices associated with the Rewired Player.
Rewired player id
A list to receive the native GCController player indexs. The incoming list will be cleared by the function.
The number of native GCController player indices returned in the results list.
Gets the Rewired Player associated with the native GCController player index.
Native GCController player index.
Rewired Player for the native GCController player index. If none, returns null.
Gets the Rewired Player id associated with the native GCController player index.
Native GCController player index. This corresponds to XUserLocalId.
Player id for the native GCController player index. If none, returns -1.
Sets the native GCController player index associated with the Rewired Player.
Native GCController player index. This corresponds to XUserLocalId.
Rewired player
Sets the native GCController player index associated with the Rewired Player.
Native GCController player index. This corresponds to XUserLocalId.
Rewired player id
Removes the Player association for the local XUser id.
Native GCController player index. This corresponds to XUserLocalId.
Determines if there is a Player association with the native GCController player index.
Native GCController player index. This corresponds to XUserLocalId.
True if there is a Player associated to this native GCController player index, or False if not.
Clears all native GCController player index to Player associations.
The default index for a player on a controller. No lights are lit on the controller.
Specifies that player one is using this controller.
Specifies that player two is using this controller.
Specifies that player three is using this controller.
Specifies that player four is using this controller.
THIS HAS NOT BEEN TESTED
Provides information about an I/O Kit device.
Device service handle.
HID product name string.
HID manufacturer string.
HID vendor id.
HID product id.
Is the device a Bluetooth device?
Version.
Serial number.
Transport.
Location id.
HID usage page.
HID usage.
Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use,
and should be allocated with SDL_RegisterEvents()
This last event is only for bounding internal arrays
\brief Fields shared by every event
\brief Window state change event data (event.window.*)
\brief Keyboard button event structure (event.key.*)
\brief Keyboard text editing event structure (event.edit.*)
\brief Mouse motion event structure (event.motion.*)
\brief Mouse button event structure (event.button.*)
\brief Mouse wheel event structure (event.wheel.*)
\brief Joystick axis motion event structure (event.jaxis.*)
\brief Joystick trackball motion event structure (event.jball.*)
\brief Joystick hat position change event structure (event.jhat.*)
\brief Joystick button event structure (event.jbutton.*)
\brief Joystick device event structure (event.jdevice.*)
\brief Game controller axis motion event structure (event.caxis.*)
\brief Game controller button event structure (event.cbutton.*)
\brief Controller device event structure (event.cdevice.*)
\brief Touch finger event structure (event.tfinger.*)
\brief Multiple Finger Gesture Event (event.mgesture.*)
\brief Dollar Gesture Event (event.dgesture.*)
\brief An event used to request a file open by the system (event.drop.*)
This event is disabled by default, you can enable it with SDL_EventState()
\note If you enable this event, you must free the filename in the event.
\brief The "quit requested" event
\brief OS Specific event
\brief A user-defined event type (event.user.*)
\brief A video driver dependent system event (event.syswm.*)
This event is disabled by default, you can enable it with SDL_EventState()
\note If you want to use this event, you should include SDL_syswm.h.
\brief General event structure
\name Usage page 0x07
These values are from usage page 0x07 (USB keyboard page).
\name Usage page 0x0C
These values are mapped from usage page 0x0C (USB consumer page).
\name Walther keys
These are values that Christian Walther added (for mac keyboard?).
The value returned cannot be used to iterate! Always use GetJoystickCount!
Number of Game Controllers
Convert from +/- 32768 to +/- 1.0f