class Prism::Systems::InputSystem

Overview

Passes input events to the InputSubscriber

Defined in:

prism/stdlib/systems/input_system.cr

Constructors

Instance Method Summary

Instance methods inherited from class Crash::System

input(tick : RenderLoop::Tick, input : RenderLoop::Input) input, render render

Constructor Detail

def self.new #

[View source]

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.


[View source]
def input(tick : RenderLoop::Tick, input : RenderLoop::Input) #
Description copied from class Crash::System

Extend Crash::System with an input method


[View source]
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.


[View source]