Add browser gamepad support with pad button pictograms
Co-Authored-By: deepseek-v4.1-flash (opencode-go) via CodeCraft
This commit is contained in:
1 parent
073999d592
commit
8d51d6ec6a
26 files changed
+1066
-22
No files matched your search
@@ -153,6 +153,7 @@ pub struct Settings {
|
||||
pub render_scale: u8, // old pixel-look divisor (no longer used, kept for old settings files)
|
||||
pub pixel_rows: u16, // graphics style: rows of the world on every screen (270 pixel art, 1080 high-res)
|
||||
pub touch_ui: u8, // touch interface: 0 = automatic (after the first touch), 1 = on, 2 = off
|
||||
pub gamepad: u8, // gamepad pictograms: 0 automatic (from the pad's id), 1 Xbox, 2 PlayStation, 3 Nintendo
|
||||
pub debug_fps: bool, // show FPS and rendering backend
|
||||
pub debug_frame_time: bool, // show the frame-time line and graph
|
||||
pub debug_ping: bool, // show network ping
|
||||
@@ -195,6 +196,7 @@ impl Default for Settings {
|
||||
render_scale: 1,
|
||||
pixel_rows: PIXEL_ART_ROWS,
|
||||
touch_ui: 0,
|
||||
gamepad: 0,
|
||||
debug_fps: false,
|
||||
debug_frame_time: false,
|
||||
debug_ping: false,
|
||||
|
||||
Reference in new issue
Block a user