Internal key assignment tool

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
Astrobe
---- E L I T E ----
---- E L I T E ----
Posts: 609
Joined: Sun Jul 21, 2013 12:26 pm

Internal key assignment tool

Post by Astrobe »

I've seen that in 1.79 will have a new screen for OXP management.

Maybe while in the screens, could you implement a key assignment tool? I know there is a browser-based tool, but it does not cut it for me.

The basic problem is that the game apparently uses key scancodes instead of ASCII values. As a result, for users of non-US keyboard, the keys shown in the quick reference aren't always the ones you actually have to press. Non-US keyboard are quite common in Europe, because our weird letters and/or weird diacritic accents. It wouldn't solve all problems (I think it would display the "wrong" characters unless one goes for a tedious implementation), but that would at least make things easier (no need to restart the game if you want to change a key for one thing).

Besides, such a tool would still be useful for those who don't have this type of problem: for instance, as a leftie I rebind the usual WASD keys to the numeric keypad in the majority of the games I play.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Internal key assignment tool

Post by Commander McLane »

Astrobe wrote:
The basic problem is that the game apparently uses key scancodes instead of ASCII values.
As far as I know, the game does use ASCII values. For instance, the screenshot is simply the key labeled '*', which is SHIFT-8 (I believe) on a US keyboard, but SHIFT-+ on my German keyboard, which is what I press in order to get a screenshot.

I remapped the Advanced Space Compass key ages ago, because it is defined as '\'. But there is no such key on a German keyboard. Thus, without remapping to a key that actually exists on my keyboard, the Advanced Space Compass cycling never would have worked for me at all (not even by pressing ALT-SHIFT-/, which produces a backslash in text).

Both cases make it quite apparent that Oolite does indeed use the ASCII values and not key scancodes.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Internal key assignment tool

Post by JensAyton »

Commander McLane wrote:
As far as I know, the game does use ASCII values. For instance, the screenshot is simply the key labeled '*', which is SHIFT-8 (I believe) on a US keyboard, but SHIFT-+ on my German keyboard, which is what I press in order to get a screenshot.
Only the Mac version.
Post Reply