class Prism::Systems::InputSystem
- Prism::Systems::InputSystem
- Crash::System
- Reference
- Object
Overview
Passes input events to the InputSubscriber
Defined in:
prism/stdlib/systems/input_system.crConstructors
Instance Method Summary
-
#add_to_engine(engine : Crash::Engine)
Called just after the system is added to the engine, before any calls to the update method.
-
#input(tick : RenderLoop::Tick, input : RenderLoop::Input)
Extend
Crash::System
with an input method -
#remove_from_engine(engine : Crash::Engine)
Called just after the system is removed from the engine, after all calls to the update method.
Instance methods inherited from class Crash::System
input(tick : RenderLoop::Tick, input : RenderLoop::Input)
input,
render
render
Constructor Detail
Instance Method Detail
def add_to_engine(engine : Crash::Engine)
#
Description copied from class Crash::System
Called just after the system is added to the engine, before any calls to the update method. Override this method to add your own functionality.
@param engine The engine the system was added to.
def input(tick : RenderLoop::Tick, input : RenderLoop::Input)
#
Description copied from class Crash::System
Extend Crash::System
with an input method
def remove_from_engine(engine : Crash::Engine)
#
Description copied from class Crash::System
Called just after the system is removed from the engine, after all calls to the update method. Override this method to add your own functionality.
@param engine The engine the system was removed from.