Menu

#3013 MACOSX: Unable to save/load using numbers on AZERTY keyboard

All Games
closed-wont-fix
4
2014-08-16
2007-01-24
No

It isn't possible to load (or save) games using Ctrl 0-9 (or Alt 1-9) key combination using a AZERTY keyboard layout. It might be due to the fact that numbers on the main keyboard can be accessed only by using the shift keys ( http://en.wikipedia.org/wiki/AZERTY ).

The situation occurred with both The Dig and The Legend of Kyrandia, but could probably be reproduced with other games. Other ways to load/save (F5 key when available, accessing the menu by clicking the intended part of the screen) works as expected.

Mapping the keyboard to a American QWERTY through System Preference does _not_ help.

The problem occured on a Intel Mac Laptop with an AZERTY layout. The machine was running OS X 10.4.8 and ScummVM 9.1 (Universal).

Please notice that Mac's AZERTY layouts are slightly different from other PC's French AZERTY layout, and probably closer to the Belgian AZERTY layout. Numbers are unaffected by those difference, but symbols under them are. Here is the list of symbols appearing on my keyboard, each with the number above it.

1 : &
2 : é
3 : "
4 : '
5 : (
6 : §
7 : è
8 : !
9 : ç
0 : à

Discussion

  • Édouard Gilbert

    • priority: 5 --> 4
     
  • Max Horn

    Max Horn - 2007-01-24

    Logged In: YES
    user_id=12935
    Originator: NO

    Pretty hard to debug this w/o such a keyboard for testing :-/.

    I attached a version of the SDL 'checkkeys' test tool (compiled for 10.4 PowerPC, hopefully work on Intel, too). You can download it, and run it for testing (you need to go to the Terminal. for this, and you have to set the executable bit of the file, i.e. do a "chmod a+x checkkeys-static" for that. If you need more details on how to do this, just ask).

    Once you managed to run it, you can simply press your "1 : &" key, to see what it prints. Also try combos like "Ctrl-1" or "Ctrl-Shift-1". You can then copy the output into a text file and attach that here.
    File Added: checkkeys-static.bz2

     
  • Max Horn

    Max Horn - 2007-01-24

    SDL checkkeys tool, static linked for 10.4 (PowerPC)

     
  • Édouard Gilbert

    Results of previously sent program

     
  • Édouard Gilbert

    Logged In: YES
    user_id=1556539
    Originator: YES

    Here you are. I split it in several part "by hand" to ease your work a very little bit.
    File Added: checkkeys-static.txt

     
  • Max Horn

    Max Horn - 2007-01-25

    Logged In: YES
    user_id=12935
    Originator: NO

    Thanks.
    So it looks as if Ctrl-NUM works fine, but Alt-NUM doesn't. Hrm.

     
  • Thierry Crozat

    Thierry Crozat - 2007-01-27

    Logged In: YES
    user_id=1604808
    Originator: NO

    I made a few tests with the last CVS build for MaxOS X (from January 26). I made the tests both on my Intel iMac with a UK keybord and my PPC iBook with a french AZERTY keybord and the external UK keybord from the iMac.

    The first think I would like to say is that changing the keybord layout in System Preferences has to be done before starting ScummVM. For some reason, if you do it after, this has no effect.

    Using the external UK keybord on the iBook does not change anything. It seems that the keybord has no effect, only the keybord layout selection in System Preferences is important. For example, I could reproduce this problem on the iMac (QWERTY keybord) by selecting the french layout before starting ScummVM. So you not need to have an AZERTY keybord to actually test this problem.

    You may think that Crtl-NUM works fine, but this is not the case. If you already have saved games, you can not load them with Crtl-NUM with the french keybord layout.

     
  • Max Horn

    Max Horn - 2007-01-27

    Logged In: YES
    user_id=12935
    Originator: NO

    Aye, now that I think about it, it actually makes perfect sense that things only depend on the layout, not the keyboard itself. After all, the computer can't know what's printed on the keys, if it could, there would be no need to select keyboard layouts.

    That ScummVM has to be restarted is no surprise either, as SDL comptues a key mapping table during startup, once.

     
  • Eugene Sandulenko

    Logged In: YES
    user_id=166507
    Originator: NO

    What is the status of this item?

     
  • Max Horn

    Max Horn - 2008-01-13

    Fix for SDL

     
  • Max Horn

    Max Horn - 2008-01-13

    Logged In: YES
    user_id=12935
    Originator: NO

    The attached patch against SDL 1.2 works around the issue *inside SDL* by always forcing the number keys to act as number keys.
    File Added: macosx-azerty-fix.patch

     
  • Eugene Sandulenko

    So what should we do with this? Perhaps close it as it is SDL problem, not ours?

     
  • Eugene Sandulenko

    • assigned_to: nobody --> sev
    • status: open --> closed-wont-fix
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.