class GB::Joypad

Defined in:

crab/gb/joypad.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(gb : GB) #

[View source]

Instance Method Detail

def a : Bool #

[View source]
def a=(a : Bool) #

[View source]
def b : Bool #

[View source]
def b=(b : Bool) #

[View source]
def button_keys : Bool #

[View source]
def button_keys=(button_keys : Bool) #

[View source]
def direction_keys : Bool #

[View source]
def direction_keys=(direction_keys : Bool) #

[View source]
def down : Bool #

describes if a button is CURRENTLY PRESSED


[View source]
def down=(down : Bool) #

describes if a button is CURRENTLY PRESSED


[View source]
def handle_input(input : Input, pressed : Bool) : Nil #

[View source]
def handle_joypad_event(event : SDL::Event) : Nil #

[View source]
def left : Bool #

[View source]
def left=(left : Bool) #

[View source]
def read : UInt8 #

[View source]
def right : Bool #

[View source]
def right=(right : Bool) #

[View source]
def select : Bool #

[View source]
def select=(select __arg0 : Bool) #

[View source]
def start : Bool #

[View source]
def start=(start : Bool) #

[View source]
def up : Bool #

[View source]
def up=(up : Bool) #

[View source]
def write(value : UInt8) : Nil #

[View source]