markdwags / Razor

Razor is a free tool designed to help with simple tasks while playing Ultima Online.
https://www.razorce.com
GNU General Public License v3.0
139 stars 97 forks source link

Improve linux hotkey handling #156

Closed dallenwilson closed 3 years ago

dallenwilson commented 3 years ago

These two patches address some incorrect-key-triggering-hotkey problems when running with ClassicUO on Linux, as reported in #153

I've added another Dictionary for mapping Windows Virtual Key Codes to Unix X11 Keysyms, and improved the key-pressed detection used when the platform is detected as linux.

I've been playing the game with these changes, and haven't found any problems with them. At worst, it shouldn't work any worse than the way it used to, since if it sees a keycode that doesn't have a mapping, it'll pass it through unchanged.

markdwags commented 3 years ago

Appreciate the work put into this.