Mercurial > repos > blastem
comparison bindings.c @ 2658:99297d5f4c5d
Persist save states and config in emscripten build via IDBFS module
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 04 Mar 2025 00:05:12 -0800 |
parents | df6dbf229e2f |
children |
comparison
equal
deleted
inserted
replaced
2657:d1f689ed3956 | 2658:99297d5f4c5d |
---|---|
202 | 202 |
203 static uint8_t content_binds_enabled = 1; | 203 static uint8_t content_binds_enabled = 1; |
204 void set_content_binding_state(uint8_t enabled) | 204 void set_content_binding_state(uint8_t enabled) |
205 { | 205 { |
206 content_binds_enabled = enabled; | 206 content_binds_enabled = enabled; |
207 } | |
208 | |
209 uint8_t get_content_binding_state(void) | |
210 { | |
211 return content_binds_enabled; | |
207 } | 212 } |
208 | 213 |
209 void bindings_set_joy_state(int joystick, uint8_t enabled) | 214 void bindings_set_joy_state(int joystick, uint8_t enabled) |
210 { | 215 { |
211 if (joystick >= MAX_JOYSTICKS || joystick < 0) { | 216 if (joystick >= MAX_JOYSTICKS || joystick < 0) { |