[Bug 45148] [Overwatch] Left Ctrl does not work

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Feb 7 11:34:59 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=45148

--- Comment #27 from odzinic at gmail.com ---
(In reply to Storm Engineer from comment #26)
> (In reply to Glow from comment #24)
> > If someone is still experiencing this issue, it's as easy as this command
> > line:
> > 
> > xmodmap -e "keycode 37 = Control_R"
> 
> That's not easy and is not a solution.
> 
> For Ctrl, I would either have to re-bind every single other game and program
> that uses Left Ctrl as well, or automate swapping back and forth when
> Overwatch is running and closing.
> 
> Fort Alt that's even worse because [Left] Alt has nothing to do with AltGr
> (Right Alt), at least on Hungarian keyboard. The former is used in function
> shortcuts while the latter is used to access special characters on the
> keyboard so I couldn't even Alt-Tab out of the game normally if it's
> swapped, not to mention that AltGr is still used for typing in the Overwatch
> chat.
> 
> I guess this workaround is better than nothing, but it's not a very good one.
> 
> 
> Any idea how could I automate it? I assume the initial swap can be added to
> the shortcut I start the Blizz app with, but any way to automatically swap
> back when Overwatch is closed?

I actually managed to get an automated approach to this using Lutris. 

Create two text files, one for changing the control buttons and one for
reverting the buttons to the default. In the "changing" text file put in
xmodmap -e "keycode 37 = Control_R" and make the file executable. Open the
"revert" text file and put in xmodmap -e "keycode 37 = Control_L" and make it
executable.

If you have Overwatch in your Lutris library then right click Overwatch and go
to Configure. Navigate to the System Options tab and scroll down to the
Pre-launch and Post-exit command fields. For the pre-launch command, navigate
to the "changing" text file/script and enable the Wait for pre-launch command
completion setting. Then for the post-exit field, navigate to the "revert" text
file/script.

Now when you launch Overwatch it should switch the layout and when you exit it
should revert it to the original. It seems like I get an error about the
lutris-wrapper crashing when I use this but the game launches properly and the
control button works without a problem.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list