Joined: 9/20/2023
Posts: 3
Problem: In any Bizhawk/Emuhawk emulator the arrow keys function in the menus and setting the key bindings within controllers but will not work as keys when used in any game in any emulator. Details: Having set the key bindings for movement to Up, Down, Left, Right (Arrow Keys) in 5+ tested emulators in Bizhawk/Emuhawk it recognizes the use of my arrow keys in the menus and for assigning the binding perfectly normal. However, when playing anything in the emulator they will not function. Assigning any other keys works fine, however assigning arrow keys does not. I have set 'Display Input' and no icon appears when using the arrow keys that were keybound so it is not recognizing their use as it should be. ------------------------ Sorry if this is not where I should make a post such as this. I may just be too dense to understand something that someone more knowledgeable finds very simple. I am very new to Bizhawk. But this has stumped me, and I ran out of ideas to attempt to solve it. Thank you in advance for any ideas or assistance.
Emulator Coder, Judge, Experienced player (732)
Joined: 2/26/2020
Posts: 791
Location: California
Try rebinding the controls here? I suspect what's actually happening here is one of the modifier keys is "stuck" (Ctrl can do this sometimes iirc?) causing the inputs to actually be something like Ctrl+Up etc. Try pressing Ctrl Alt and Shift too and see if that fixes issues.
Joined: 9/20/2023
Posts: 3
CasualPokePlayer wrote:
Try rebinding the controls here? I suspect what's actually happening here is one of the modifier keys is "stuck" (Ctrl can do this sometimes iirc?) causing the inputs to actually be something like Ctrl+Up etc. Try pressing Ctrl Alt and Shift too and see if that fixes issues.
You were indeed correct, modifier keys are doing something in this equation. I am attempting to find a cause to try to solve the situation still. I was not able to use the arrow keys consistently with any variation of Ctrl, Alt, Shift, or a combination of them with the arrow keys but I would get sporadic moments where they keybindings would work then stop. I will update if I find a solution.
Joined: 9/23/2023
Posts: 1
Location: US
Any update?
YoshiRulz
Any
Editor, Emulator Coder
Joined: 8/30/2020
Posts: 111
Location: Sydney, Australia
Run this Lua script to show which keys are being pressed: Download display_held.lua
Language: lua

local WINDOW = 100; local concat_names = function(list) local s = ""; local l = ""; for k, _ in pairs(list) do l = l..k.." "; if #l > 60 then s = s..l.."\n"; l = ""; end end return s..l; end; local held = {}; local held_str = ""; while true do for k, v in pairs(input.get()) do held[k] = v; end if emu.framecount() % WINDOW == 0 then held_str = concat_names(held); held = {}; end gui.text(0, 0, held_str, nil, "bottomleft"); emu.frameadvance(); end
I contribute to BizHawk as Linux/cross-platform lead, testing and automation lead, and UI designer. This year, I'm experimenting with streaming BizHawk development on Twitch. nope Links to find me elsewhere and to some of my side projects are on my personal site. I will respond on Discord faster than to PMs on this site.
Hey look buddy, I'm an engineer. That means I solve problems. Not problems like "What is software," because that would fall within the purview of your conundrums of philosophy. I solve practical problems. For instance, how am I gonna stop some high-wattage thread-ripping monster of a CPU dead in its tracks? The answer: use code. And if that don't work? Use more code.
Joined: 9/20/2023
Posts: 3
Sorry for the delayed response, I had been busy and had little success in my attempts to discern the cause. I tried YoshiRulz script to see what the output is and the results, which are below, would make me think it is a keyboard issue if it was not for the fact that the arrow keys work in everything but emulated Bizhawk games. They work in the Bizhawk menu, all my other emulation, as well as any other normal use like in this text field. This keyboard is getting older and my son has spilled a sugary drink on it at least once, but I have no issues in anything but Bizhawk. When I get a chance I am going to have to try another keyboard, my others are in storage at the moment. Results: - When set to Up, Down, Left, Right there is no response. It does NOT detect any arrow keys being pressed. - When set to Ctrl+Up, Ctrl+Down, Ctrl+Left, Ctrl+Right it does NOT detect the arrow keys on their own. However, after hitting Ctrl+Up, Ctrl+Down, Ctrl+Left, and/or Ctrl+Right. From then on Up, Down, Left, or Right are stuck displayed as being pressed continuously until I reset.
Joined: 9/8/2024
Posts: 1
LordMace wrote:
Sorry for the delayed response, I had been busy and had little success in my attempts to discern the cause. I tried YoshiRulz script to see what the output is and the results, which are below, would make me think it is a keyboard issue if it was not for the fact that the arrow keys work in everything but emulated Bizhawk games. They work in the Bizhawk menu, all my other emulation, as well as any other normal use like in this text field. This keyboard is getting older and my son has spilled a sugary drink on it at least once, but I have no issues in anything but Bizhawk. When I get a chance I am going to have to try another keyboard, my others are in storage at the moment. Results: - When set to Up, Down, Left, Right there is no response. It does NOT detect any arrow keys being pressed. - When set to Ctrl+Up, Ctrl+Down, Ctrl+Left, Ctrl+Right it does NOT detect the arrow keys on their own. However, after hitting Ctrl+Up, Ctrl+Down, Ctrl+Left, and/or Ctrl+Right. From then on Up, Down, Left, or Right are stuck displayed as being pressed continuously until I reset.
Config, Key Priority, Input over hotkeys. This worked for me, hope it helps :)