comparison bindings.c @ 2291:4de40b13b55f

Filter out "down" binds when content binds are disabled
author Michael Pavone <pavone@retrodev.com>
date Sun, 05 Feb 2023 15:12:14 -0800
parents 5d3411f52d00
children eb45ad9d8a3f
comparison
equal deleted inserted replaced
2290:c4980d89614b 2291:4de40b13b55f
199 content_binds_enabled = enabled; 199 content_binds_enabled = enabled;
200 } 200 }
201 201
202 void handle_binding_down(keybinding * binding) 202 void handle_binding_down(keybinding * binding)
203 { 203 {
204 if (!current_system) { 204 if (!current_system || !content_binds_enabled) {
205 return; 205 return;
206 } 206 }
207 if (binding->bind_type == BIND_GAMEPAD && current_system && current_system->gamepad_down) 207 if (binding->bind_type == BIND_GAMEPAD && current_system && current_system->gamepad_down)
208 { 208 {
209 current_system->gamepad_down(current_system, binding->subtype_a, binding->subtype_b); 209 current_system->gamepad_down(current_system, binding->subtype_a, binding->subtype_b);