|
@@ -58,7 +58,7 @@ uint8_t serial_data = 0x00;
|
|
|
uint8_t keyboard_emulation(uint8_t, uint8_t);
|
|
|
uint8_t mouse_emulation(uint8_t, uint8_t);
|
|
|
uint8_t mouse_move(uint8_t, uint8_t, uint8_t, uint8_t);
|
|
|
-uint8_t mouse_scroll(uint8_t, uint8_t);
|
|
|
+uint8_t mouse_wheel(uint8_t, uint8_t);
|
|
|
|
|
|
/* KVM Operation Execution Catergory*/
|
|
|
uint8_t kvm_execute_opr() {
|
|
@@ -75,11 +75,10 @@ uint8_t kvm_execute_opr() {
|
|
|
case OPR_TYPE_MOUSE_SCROLL:
|
|
|
//mouse scroll
|
|
|
//for larger scroll tilt value, use the multipler
|
|
|
- return mouse_scroll(opr_subtype, opr_payload);
|
|
|
+ return mouse_wheel(opr_subtype, opr_payload);
|
|
|
default:
|
|
|
return resp_unknown_opr;
|
|
|
}
|
|
|
- return resp_ok;
|
|
|
}
|
|
|
|
|
|
void setup() {
|
|
@@ -134,6 +133,7 @@ void loop() {
|
|
|
opr_type = OPR_TYPE_RESERVED;
|
|
|
instr_count = 0;
|
|
|
}
|
|
|
+ Serial0_write(resp_ok);
|
|
|
} else {
|
|
|
opr_payload = serial_data;
|
|
|
//Execute the kvm operation
|