add scroll wheel support to remote desktop
This commit is contained in:
@@ -23,6 +23,7 @@ const (
|
||||
MOUSEEVENTF_RIGHTUP = 0x0010
|
||||
MOUSEEVENTF_MIDDLEDOWN = 0x0020
|
||||
MOUSEEVENTF_MIDDLEUP = 0x0040
|
||||
MOUSEEVENTF_WHEEL = 0x0800
|
||||
MOUSEEVENTF_ABSOLUTE = 0x8000
|
||||
MOUSEEVENTF_VIRTUALDESK = 0x4000
|
||||
|
||||
@@ -97,6 +98,10 @@ func sendMouseUp(button int) {
|
||||
}
|
||||
}
|
||||
|
||||
func sendMouseWheel(delta int32) {
|
||||
sendMouseInput(MOUSEEVENTF_WHEEL, uint32(delta))
|
||||
}
|
||||
|
||||
func sendMouseInput(flags uint32, mouseData uint32) {
|
||||
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
|
||||
var inp input
|
||||
|
||||
Reference in New Issue
Block a user