Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crab
master
Top Level Namespace
BiosSelection
Config
GBA
GBC
ConfigEditor
Controller
Crab
Emu
Frontend
GB
APU
Cartridge
CGB
CartridgeType
Channel1
Channel2
Channel3
Channel4
CPU
DmgOps
FlagOp
Flags
Group
Operation
Response
FifoPPU
FetchStage
GB
Interrupts
InterruptLine
Joypad
MBC1
MBC2
MBC3
MBC5
Memory
Opcodes
Pixel
PPU
ROM
ScanlinePPU
SoundChannel
Sprite
Timer
VolumeEnvelopeChannel
GBA
APU
ARM
BGR16
BlendMode
Bus
Cartridge
Channel1
Channel2
Channel3
Channel4
Color
CPU
Mode
PSR
DMA
AddressControl
StartTiming
DMAChannels
EEPROM
Size
State
Flash
Command
State
GBA
GPIO
Interrupts
Keypad
MMIO
Pipeline
PPU
Reg
Base16
Base32
BGAFF
BGCNT
BGOFS
BGREF
BLDALPHA
BLDCNT
BLDY
DISPCNT
DISPSTAT
DMACNT
InterruptReg
KEYCNT
KEYINPUT
MOSAIC
SOUNDBIAS
SOUNDCNT_H
SOUNDCNT_L
TMCNT
WAITCNT
WINH
WININ
WINOUT
WINV
RTC
Register
State
SoundChannel
Sprite
SpritePixel
SRAM
Storage
Type
THUMB
Timer
VolumeEnvelopeChannel
Waitloop
AddOffsetToStackPointer
AddSubtract
AluOperations
ConditionalBranch
HighRegBranchExchange
Instruction
LoadAddress
LoadStoreHalfword
LoadStoreImmediateOffset
LoadStoreRegisterOffset
LoadStoreSignExtended
LongBranchLink
MoveCompareAddSubtract
MoveShiftedRegister
MultipleLoadStore
PcRelativeLoad
PushPopRegisters
SoftwareInterrupt
SpRelativeLoadStore
UnconditionalBranch
Unimplemented
GBAController
GBController
HeadlessFrontend
ImGui
FileExplorer
Input
Keybindings
Resolvable
Scheduler
EventType
SDL
Window
SDLOpenGLImGuiFrontend
OpenGLInfo
Shader
StubbedController
Built with Crystal 1.10.0
2023-12-10 00:36:06 UTC
class
GBController
GBController
Controller
Reference
Object
Defined in:
crab/common/frontend/controllers/gb_controller.cr
Constructors
.new
(config : Config, bios : String | Nil, rom : String)
Class Method Summary
.extensions
: Array(String)
.fragment_shader
: String
.vertex_shader
: String
Instance Method Summary
#emu
: GB::GB
#height
: Int32
#sync?
: Bool
#width
: Int32
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
(config :
Config
, bios : String | Nil, rom : String)
#
[
View source
]
Class Method Detail
def self.
extensions
: Array(String)
#
[
View source
]
def self.
fragment_shader
: String
#
[
View source
]
def self.
vertex_shader
: String
#
[
View source
]
Instance Method Detail
def
emu
:
GB::GB
#
[
View source
]
def
height
: Int32
#
[
View source
]
def
sync?
: Bool
#
[
View source
]
def
width
: Int32
#
[
View source
]