mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-13 18:58:49 +01:00
make trackball button press became middle mouse key
This commit is contained in:
parent
a3e3e94949
commit
afbc75e2cc
@ -513,9 +513,9 @@ void keypad_action(DEVTERM*dv,uint8_t col,uint8_t mode) {
|
|||||||
|
|
||||||
case _TRACKBALL_BTN:
|
case _TRACKBALL_BTN:
|
||||||
if(mode == KEY_PRESSED){
|
if(mode == KEY_PRESSED){
|
||||||
dv->Mouse->press(1);
|
dv->Mouse->press(MOUSE_MIDDLE);
|
||||||
}else if(mode == KEY_RELEASED){
|
}else if(mode == KEY_RELEASED){
|
||||||
dv->Mouse->release(1);
|
dv->Mouse->release(MOUSE_MIDDLE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user