mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
Add support for mousewheel
This commit is contained in:
@@ -137,6 +137,7 @@ public class EvdevConstants {
|
||||
/* Mouse constants */
|
||||
public static final short REL_X = 0x00;
|
||||
public static final short REL_Y = 0x01;
|
||||
public static final short REL_WHEEL = 0x08;
|
||||
|
||||
public static final short BTN_LEFT = 0x110;
|
||||
public static final short BTN_RIGHT = 0x111;
|
||||
|
||||
@@ -136,7 +136,9 @@ public class EvdevHandler extends EvdevReader {
|
||||
conn.sendMouseMove((short) value, (short) 0);
|
||||
else if (code==EvdevConstants.REL_Y)
|
||||
conn.sendMouseMove((short) 0, (short) value);
|
||||
|
||||
else if (code==EvdevConstants.REL_WHEEL)
|
||||
conn.sendMouseScroll((byte) value);
|
||||
|
||||
mapped = false;
|
||||
} else if (type==EvdevConstants.EV_ABS) {
|
||||
if (code==mapping.abs_x)
|
||||
|
||||
Reference in New Issue
Block a user