Skip to contentSkip to conversation

Where's the code for inputs in Grub?

DISCUSSION Gerard Butler 2 participants 2 messages May 29, 2014 – Jun 2, 2014

lore
Share & tools
lore
#0 lore raw

I'm looking for the .c file that tells grub about how to handle keyboard inputs? I want to see if I can use that as a base to write a module to take input from game controllers.

#1 lore raw

В Thu, 29 May 2014 09:24:13 -0600
Gerard Butler <[email protected]> пишет:

Quoted 1 line

I'm looking for the .c file that tells grub about how to handle keyboard inputs? I want to see if I can use that as a base to write a module to take input from game controllers.

Look under grub-core/term. Your driver would need to implement function for getting keys and register itself with grub_term_register_input() so it becomes available for grub core.