Sinespace Client
2023.2.17543
Client-side scripting for Sinespace
|
Public Member Functions | |
override void | Initialise (SScript runtime, object wrapper) |
bool | GetKeyDown (string key) |
Returns whether a key has been depressed since the end of the last frame. More... | |
bool | GetKeyUp (string key) |
bool | GetKey (string key) |
bool | GetMouseDown (int button) |
bool | GetMouseUp (int button) |
bool | GetMouseHold (int button) |
void | Vibrate (float intensity, float duration, bool leftHand) |
Vibrates the controller (or phone, or gamepad) if a rumble device is present. More... | |
Public Member Functions inherited from ScriptClass< T > | |
void | ReportError (string error, bool fatal, UnityEngine.Object target=null) |
Public Member Functions inherited from ScriptClassWrapper< T > | |
override void | Initialise (SScript runtime, object wrapper) |
Properties | |
float | ScrollWheel [get] |
SVector | MousePosition [get] |
SVector | MovementAxis [get] |
SVector? | TurnAxis [get] |
bool | MouseLook [get, set] |
float | MouseX [get] |
float | MouseY [get] |
bool | ClickToWalk [get, set] |
bool | Fire [get] |
bool | AltFire [get] |
bool | CursorInUI [get] |
Properties inherited from ScriptClass< T > | |
override bool | Alive [get] |
Return if the component is alive. More... | |
virtual bool | Alive [get] |
DynValue | CachedData [get, set] |
Properties inherited from ScriptClassWrapper< T > | |
T | _wrap [get] |
Additional Inherited Members | |
Protected Member Functions inherited from ScriptClass< T > | |
void | Initialise (SScript runtime) |
bool SineSpace.Scripting.Client.SInput.GetKey | ( | string | key | ) |
bool SineSpace.Scripting.Client.SInput.GetKeyDown | ( | string | key | ) |
Returns whether a key has been depressed since the end of the last frame.
key |
bool SineSpace.Scripting.Client.SInput.GetKeyUp | ( | string | key | ) |
bool SineSpace.Scripting.Client.SInput.GetMouseDown | ( | int | button | ) |
bool SineSpace.Scripting.Client.SInput.GetMouseHold | ( | int | button | ) |
bool SineSpace.Scripting.Client.SInput.GetMouseUp | ( | int | button | ) |
|
virtual |
Implements ScriptClass< T >.
void SineSpace.Scripting.Client.SInput.Vibrate | ( | float | intensity, |
float | duration, | ||
bool | leftHand | ||
) |
Vibrates the controller (or phone, or gamepad) if a rumble device is present.
intensity | Intensity from 0 to 1.0 |
duration | Duration (max 1.0s) |
leftHand | Rumble on the left hand (false = right hand), where applicable. |
|
get |
|
getset |
|
get |
|
get |
|
getset |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |