Page 1 of 1
UEFI Input Protocol Hold Down Key?
Posted: Sat Aug 13, 2016 12:27 pm
by chris13524
I'm reading through the UEFI specification so I can make a basic keyboard driver. It seems it supports key presses, but not if it's being held down. It does look like you can see if modifier keys are being held down, but not regular keys.
My use for this is for a simple pong game, it requires holding down keys to move the paddle. I suppose I could make the user press the key multiple times to get it into position, but this seems like a work around.
Re: UEFI Input Protocol Hold Down Key?
Posted: Sat Aug 13, 2016 1:22 pm
by Brendan
Hi,
chris13524 wrote:I'm reading through the UEFI specification so I can make a basic keyboard driver. It seems it supports key presses, but not if it's being held down. It does look like you can see if modifier keys are being held down, but not regular keys.
My use for this is for a simple pong game, it requires holding down keys to move the paddle. I suppose I could make the user press the key multiple times to get it into position, but this seems like a work around.
UEFI is designed to provide the "minimum" needed to boot an OS and run a small amount of low level utilities. It's not designed to be good for anything (e.g. for performance, for fault tolerance, for scalability, ...) and is especially not designed to be good for games.
Your choices are:
- Make the user press the key/s multiple times
- Use the modifier keys for paddle control
- Use the "simple pointer protocol" (e.g. mouse) instead of using the keyboard
- Write your own UEFI compatible USB keyboard driver (and get it digitally signed so that it's allowed to work on most systems), and make it provide non-standard support for whatever you like
- Stop diddling with applications and write an OS like an OS developer would
Cheers,
Brendan