add scroll wheel support to remote desktop

This commit is contained in:
KingKDot
2026-04-22 16:15:53 -05:00
parent 55a346e39b
commit 8c3c6de1c3
5 changed files with 37 additions and 1 deletions
@@ -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