input: Add mouse support
When running a simple GUI it is useful to support a mouse. This is similar to what is provided in UEFI's boot menu. Add a simple uclass and a way to read the mouse position. For sandbox add a driver that reads the position from SDL. Disable input for the tools-only build, since it is of no use there and causes build failures. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -97,6 +97,7 @@ enum uclass_id {
|
||||
UCLASS_MISC, /* Miscellaneous device */
|
||||
UCLASS_MMC, /* SD / MMC card or chip */
|
||||
UCLASS_MOD_EXP, /* RSA Mod Exp device */
|
||||
UCLASS_MOUSE, /* Mouse, trackpad or other pointing device */
|
||||
UCLASS_MTD, /* Memory Technology Device (MTD) device */
|
||||
UCLASS_MUX, /* Multiplexer device */
|
||||
UCLASS_NOP, /* No-op devices */
|
||||
|
||||
Reference in New Issue
Block a user