diff 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
line wrap: on
line diff
--- a/bindings.c	Sat Feb 04 23:31:11 2023 -0800
+++ b/bindings.c	Sun Feb 05 15:12:14 2023 -0800
@@ -201,7 +201,7 @@
 
 void handle_binding_down(keybinding * binding)
 {
-	if (!current_system) {
+	if (!current_system || !content_binds_enabled) {
 		return;
 	}
 	if (binding->bind_type == BIND_GAMEPAD && current_system && current_system->gamepad_down)