mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[usb] Support keyboard remapping via the native USB keyboard driver
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -29,6 +29,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ipxe/console.h>
|
#include <ipxe/console.h>
|
||||||
#include <ipxe/keys.h>
|
#include <ipxe/keys.h>
|
||||||
|
#include <ipxe/keymap.h>
|
||||||
#include <ipxe/usb.h>
|
#include <ipxe/usb.h>
|
||||||
#include "usbkbd.h"
|
#include "usbkbd.h"
|
||||||
|
|
||||||
@@ -122,6 +123,10 @@ static unsigned int usbkbd_map ( unsigned int keycode, unsigned int modifiers,
|
|||||||
key = 0;
|
key = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Remap key if applicable */
|
||||||
|
if ( keycode < USBKBD_KEY_CAPS_LOCK )
|
||||||
|
key = key_remap ( key );
|
||||||
|
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user