class Game::Controller

Overview

Handle button to action mapping in a dynamic way

Defined in:

game/controller.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(mapping : Hash(SF::Keyboard::Key, String)) #

[View source]

Instance Method Detail

def action?(name) #

[View source]
def press(button) #

[View source]
def registered?(button) #

[View source]
def release(button) #

[View source]