API reference
API reference
Select your platform
No SDKs available
No versions available

InputSystem

InputSystem

class InputSystem(val locomotionSystem: LocomotionSystem, val ctx: <Error class: unknown class>) : SystemBase

Constructors

NameSummary
InputSystem
constructor(locomotionSystem: LocomotionSystem, ctx: <Error class: unknown class>)

Types

NameSummary
Companion
object Companion

Properties

NameSummary
active
var active: Boolean
ctx
val ctx: <Error class: unknown class>
cursorActuatedRatio
var cursorActuatedRatio: Float
cursorDepthScale
var cursorDepthScale: Float
cursorScale
var cursorScale: Float
cursorScaleMultiplier
var cursorScaleMultiplier: Float
locomotionSystem
val locomotionSystem: LocomotionSystem
selectButtons
var selectButtons: Int
systemManager
lateinit var systemManager: SystemManager
The system manager that this system is associated with.
touchButtons
var touchButtons: Int

Functions

NameSummary
associateSystemManager
fun associateSystemManager(systemManager: SystemManager)
Associates this system with a system manager, used in the Spatial SDK.
delete
open fun delete(entity: Entity)
System should do any housekeeping based on entity being removed from the scene
destroy
open override fun destroy()
System should clean up any and all resources for shutdown
enableInput
fun enableInput(enabled: Boolean)
equals
open operator override fun equals(other: Any?): Boolean
Checks if this system is equal to another object.
execute
open override fun execute()
System should perform all the operations based on relevant entities.
getDependencies
open fun getDependencies(): SystemDependencies?
Returns the dependencies of this system.
getScene
fun getScene(): Scene
Returns the scene that this system is associated with.
hashCode
open override fun hashCode(): Int
Returns the hash code of this system.

Companion

object Companion

Properties

NameSummary
DEFAULT_CURSOR_ACTUATED_RATIO
val DEFAULT_CURSOR_ACTUATED_RATIO: Float
DEFAULT_CURSOR_DEPTH_SCALE
val DEFAULT_CURSOR_DEPTH_SCALE: Float = 0.0112f
DEFAULT_CURSOR_SCALE
val DEFAULT_CURSOR_SCALE: Float = 3.2E-4f
DEFAULT_CURSOR_SCALE_MULTIPLIER
val DEFAULT_CURSOR_SCALE_MULTIPLIER: Float = 0.75f
Did you find this page helpful?
Thumbs up icon
Thumbs down icon