Menu

#174 Impossible to assign certain keys as input.

open
5
2005-01-05
2005-01-05
No

In version 0.84.b3 when using USB keyboards or
Arcade joysticks, some keys are not possible to assign.
For example, trying to use key "z" does not work, I
tried both with USB keyboard and arcade joystick that
uses z as right movement. This mappings works
perfectly on xmame, so it must be a bug related to
mameox implementation. Besides z key there are other
keys that are not possible to map either.

Discussion

  • Manuel Astudillo

    Logged In: YES
    user_id=613523

    hmm, I checked a bit the MAMEOx Sources and found
    something that might be the bug (at least for the Z key).
    In the file xbox_Keyboard.cpp line 109:

    char str[2] = { 'A', 0 };
    UINT32 i = 0;
    for( ; i < KEYCODE_Z - KEYCODE_A; ++i )
    {
    str[0] = 'A' + i;
    ADDENTRY( str, str[0], KEYCODE_A + i );
    }

    Seems to me that the loop iterate only to KEYCODE_Y...
    the correct loop should be:

    char str[2] = { 'A', 0 };
    UINT32 i;
    for( i = 0; i <= KEYCODE_Z - KEYCODE_A; i++ )
    {
    str[0] = 'A' + i;
    ADDENTRY( str, str[0], KEYCODE_A + i );
    }

     
  • Nobody/Anonymous

    Logged In: NO

    Fixed in MAMEoX128 Plus!

     

Log in to post a comment.