LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 06-23-2013, 05:32 PM   #1
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Lightbulb Wine and Starcraft azerty keyboard units group problem finally solved !


Hi !

For all Starcraft - Broodwar players that have problems with keyboard, with group of units selection not working, like being forced to press Alt to select units, here's the workaround.

First, create a dump of your current keyboard layout:
xkbcomp $DISPLAY current-layout.dump

And another one you will modify:
xkbcomp $DISPLAY craft-layout.dump

Now edit the craft layout, around lines 1100, where you see:

Code:
    key <AE01> {
        type= "FOUR_LEVEL",
        symbols[Group1]= [       1,               ampersand,     onesuperior,      exclamdown ]
    };
    key <AE02> {
        type= "FOUR_LEVEL",
        symbols[Group1]= [          2,               eacute,      asciitilde,       oneeighth ]
    };
Then you just have to swap number and characters from 1 to 0, e.g.:
Code:
    key <AE01> {
        type= "FOUR_LEVEL",
        symbols[Group1]= [       ampersand,               1,     onesuperior,      exclamdown ]
    };
    key <AE02> {
        type= "FOUR_LEVEL",
        symbols[Group1]= [          eacute,               2,      asciitilde,       oneeighth ]
    };

etc..
Now, before launching Starcraft:
Code:
xkbcomp craft-layout.dump $DISPLAY
And after, to get back to the normal layout:
Code:
xkbcomp normal-layout.dump $DISPLAY
On my french azerty keyboard, 5 doesn't work, so i swapped 5 and 0, so all keys from 1-9 are working perfectly, i can create and select groups without having to use Alt.

Last edited by Linux.tar.gz; 06-23-2013 at 06:41 PM.
 
Old 04-18-2018, 08:00 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Can't edit the first post so a bit of errata:

The two "around 1100 line" code blocks are in the wrong order.

The last block is:
Code:
xkbcomp current-layout.dump $DISPLAY
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starcraft Wine Problem Hubmasterflex Linux - Games 3 06-14-2005 06:02 AM
azerty keyboard on dsl bibilit DamnSmallLinux 3 09-06-2004 07:27 AM
Wine/Starcraft problem. Genesis Linux - Software 11 03-22-2004 03:13 PM
Starcraft on Wine Mouse and Keyboard don't work! kierwind Linux - Software 1 06-20-2003 04:58 PM
WINE + Starcraft Problem Bigun Linux - General 2 11-01-2002 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration