quick bugfix for missing inits

This commit is contained in:
Igor Janjatovic 2021-06-14 10:06:21 +02:00
parent fc9abcd724
commit 8202554280

View File

@ -121,6 +121,7 @@ static void hal_init(void) {
/* Add the keyboard as input device /* Add the keyboard as input device
* Use the 'keyboard' driver which reads the PC's keyboard*/ * Use the 'keyboard' driver which reads the PC's keyboard*/
keyboard_init();
lv_indev_drv_init(&keyb_drv); lv_indev_drv_init(&keyb_drv);
keyb_drv.type = LV_INDEV_TYPE_KEYPAD; keyb_drv.type = LV_INDEV_TYPE_KEYPAD;
keyb_drv.read_cb = keyboard_read; keyb_drv.read_cb = keyboard_read;
@ -128,6 +129,7 @@ static void hal_init(void) {
/* Add the mouse wheel as input device (encoder type) /* Add the mouse wheel as input device (encoder type)
* Use the 'mousewheel' driver which reads the PC's mouse wheel*/ * Use the 'mousewheel' driver which reads the PC's mouse wheel*/
mousewheel_init();
lv_indev_drv_init(&enc_drv); lv_indev_drv_init(&enc_drv);
enc_drv.type = LV_INDEV_TYPE_ENCODER; enc_drv.type = LV_INDEV_TYPE_ENCODER;
enc_drv.read_cb = mousewheel_read; enc_drv.read_cb = mousewheel_read;