class StubbedController

Defined in:

crab/common/frontend/controllers/stubbed_controller.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Controller

emu : Emu emu, get_framebuffer : Slice(UInt16) get_framebuffer, handle_controller_event(event : SDL::Event::JoyHat | SDL::Event::JoyButton) : Nil handle_controller_event, handle_input(input : Input, pressed : Bool) : Nil handle_input, height : Int32 height, render_debug_items : Nil render_debug_items, render_menu : Nil render_menu, render_windows : Nil render_windows, run_until_frame : Nil run_until_frame, sync? : Bool sync?, toggle_sync : Nil toggle_sync, width : Int32 width, window_height : Int32 window_height, window_width : Int32 window_width

Constructor Detail

def self.new(*args, **kwargs) #

[View source]

Class Method Detail

def self.extensions #

[View source]
def self.fragment_shader : String #

[View source]
def self.vertex_shader : String #

[View source]

Instance Method Detail

def emu : Emu #

[View source]
def get_framebuffer : Slice(UInt16) #

[View source]
def handle_controller_event(event : SDL::Event::JoyHat | SDL::Event::JoyButton) : Nil #

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

[View source]
def height : Int32 #

[View source]
def run_until_frame : Nil #

[View source]
def sync? : Bool #

[View source]
def toggle_sync : Nil #

[View source]
def width : Int32 #

[View source]
def window_height : Int32 #

[View source]
def window_width : Int32 #

[View source]