Sinespace Client 2025.3.19431
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. | |
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. | |
![]() | |
void | ReportError (string error, bool fatal, UnityEngine.Object target=null) |
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] |
bool | IsVRAvailable [get] |
bool | IsVRActive [get] |
SVector | VRLeftControllerPosition [get] |
SVector | VRRightControllerPosition [get] |
SQuaternion | VRLeftControllerRotation [get] |
SQuaternion | VRRightControllerRotation [get] |
![]() | |
virtual bool | Alive [get] |
DynValue | CachedData [get, set] |
Additional Inherited Members | |
![]() | |
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 | ) |
override void SineSpace.Scripting.Client.SInput.Initialise | ( | SScript | runtime, |
object | wrapper ) |
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 |
|
get |
|
get |
|
getset |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |