-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Viewer: Send horizontal scroll wheel events
On macOS and Windows, these are communicated to applications as vertical scroll wheel events with the Shift key held down. (The operating system acts as if the Shift key is held down, but no Shift key press/release events are actually fired.) We use RFB Buttons 6 and 7 for, respectively, left and right scroll wheel events, since X11 Buttons 6 and 7 are used for the same purpose. (Thus, implementing this feature in the TurboVNC Server simply required incrementing the loop limit in PtrAddEvent().) Java doesn't need to use Java Buttons 4 and 5 for vertical scroll wheel events, since those events have a separate subclass. Thus, X11 Buttons 6 and 7 map to Java Buttons 4 and 5, and we simply map Java Buttons 4 and 5 to RFB Buttons 6 and 7 in order to implement horizontal scrolling for X11 clients. Server and macOS/Windows viewer implementation based on: rsparlin@77e266d Closes #416
- Loading branch information
1 parent
d099a4d
commit 32f5969
Showing
4 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters