Swanium::Frontend::NativeControls
Inherits Reference < Object
Native controls are deliberately kept outside SDL. SDL continues to own the low-latency screen, keyboard/gamepad, and audio paths, while libui-ng/AppKit supplies the application menu and native status bar.
Constructors
new(title : String)
Sourcestart(title : String) : NativeControls
SourceInstance methods
attach_status(window : Pointer(Void)) : Nil
Sourcecapture_controller_button(button : Int32) : Bool
Sourcecapture_keyboard(scancode : Int32) : Bool
Sourceclose
Sourcedetach_status
Sourceinitial_scale
Sourcepump
Sourcequit_requested
Sourcereserved_status_height(window : Pointer(Void)) : Int32
Sourcesave_scale(scale : Int32) : Nil
Sourceshow_error(message : String) : Nil
Sourcetake_fullscreen_request?
Sourcetake_load_state_request
Sourcetake_open_rom_path
Sourcetake_pause_request?
Sourcetake_renderer_request
Sourcetake_reset_request?
Sourcetake_save_state_request
Sourcetake_scale_request
Sourceupdate_state_slots(rom_id : String) : Nil
Sourceupdate_status(title : String, fps : Float64, paused : Bool) : Nil
Sourcevolume
Source