Results 1 to 5 of 5

Thread: KeeperFX 0.39a: Multiplayer game (writing the name)

  
  1. #1
    Ghost
    Join Date
    Dec 2010
    Location
    Madrid, Spain
    Posts
    368

    Default KeeperFX 0.39a: Multiplayer game (writing the name)

    I have spanish keyboard configuration in my Win7 64 bits. KeeperFX does not take the "special" characters like ":" or "?" when I write my name in the multiplayer game. But these characters can be written in the name typing other keyboard keys.

    I remember that thing happened in DosBox some versions ago when you wrote in the command line. The latest version of DosBox now recognises perfectly the keyboard layout and print correctly the keys, that is the same thing that happen to KeeperFX. For example:

    Shift + "ñ" key writes the ":" character.
    Shift + "_" key writes the "?" character.

    That was exactly the same behaviour in DosBox that now it is fixed.

    Can this be corrected?
    Last edited by jomalin; June 11th, 2011 at 17:37.

  2. #2
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: KeeperFX 0.39a: Multiplayer game (writing the name)

    If DOSBox did it, then I'm sure it can.

    Like DOSBox, KeeperFX uses SDL to draw screen and read keyboard. So the question is, how to force correct support of spanish keyboard in SDL.

  3. #3
    Ghost
    Join Date
    Dec 2010
    Location
    Madrid, Spain
    Posts
    368

    Default Re: KeeperFX 0.39a: Multiplayer game (writing the name)

    I attach a changelog file with DosBox versions, here we can search for "keyboard" and see what I said. Now I can remember that it was in DosBox 0.73 when my spanish keyboard layout was successfully recognised correctly. So probably we can search for the source code diferences between 0.72 and 0.73. This is the changelog, with only the lines that contain "keyboard":

    0.74

    0.73
    - Added some basic auto keyboard layout handling. (windows only currently)
    - Add basic support for evdev keyboard driver.

    0.72
    - Fixed a bug in keyboard layout processing code and fixed certain
    layouts.
    - Added a lot more keyboard layouts.

    0.71

    0.70
    - Add support for different keyboard layouts.
    - Improve keyboard input codes on various OS-es.

    0.65
    - Improved extended keyboard support.

    0.63
    - A few keyboard fixes.

    0.62
    - Improved support for the numeric keyboard.

    0.61
    - Some keyboard improvements (pharlab games)

    0.60

    0.58
    - improved support for foreign keyboards

    0.57

    0.56

    0.55
    - added more funtions to the keyboard handler



    I don't know very much about keyboard/SDL programming but it looks like is not probably an easy work...
    Another strange behaviour is that in the multiplayer chat, you can't write the "?" or ":" characters... Why you can write these characters for your name but not in the multiplayer chat?


    Looking in "keyboard.h" from DosBox source code we can see all the keyboard keys listed:

    enum KBD_KEYS {
    KBD_NONE,
    KBD_1, KBD_2, KBD_3, KBD_4, KBD_5, KBD_6, KBD_7, KBD_8, KBD_9, KBD_0,
    KBD_q, KBD_w, KBD_e, KBD_r, KBD_t, KBD_y, KBD_u, KBD_i, KBD_o, KBD_p,
    KBD_a, KBD_s, KBD_d, KBD_f, KBD_g, KBD_h, KBD_j, KBD_k, KBD_l, KBD_z,
    KBD_x, KBD_c, KBD_v, KBD_b, KBD_n, KBD_m,
    KBD_f1, KBD_f2, KBD_f3, KBD_f4, KBD_f5, KBD_f6, KBD_f7, KBD_f8, KBD_f9, KBD_f10,KBD_f11,KBD_f12,

    /*Now the weirder keys */

    KBD_esc,KBD_tab,KBD_backspace,KBD_enter,KBD_space,
    KBD_leftalt,KBD_rightalt,KBD_leftctrl,KBD_rightctr l,KBD_leftshift,KBD_rightshift,
    KBD_capslock,KBD_scrolllock,KBD_numlock,

    KBD_grave,KBD_minus,KBD_equals,KBD_backslash,KBD_l eftbracket,KBD_rightbracket,
    KBD_semicolon,KBD_quote,KBD_period,KBD_comma,KBD_s lash,KBD_extra_lt_gt,

    KBD_printscreen,KBD_pause,
    KBD_insert,KBD_home,KBD_pageup,KBD_delete,KBD_end, KBD_pagedown,
    KBD_left,KBD_up,KBD_down,KBD_right,

    KBD_kp1,KBD_kp2,KBD_kp3,KBD_kp4,KBD_kp5,KBD_kp6,KB D_kp7,KBD_kp8,KBD_kp9,KBD_kp0,
    KBD_kpdivide,KBD_kpmultiply,KBD_kpminus,KBD_kpplus ,KBD_kpenter,KBD_kpperiod,


    KBD_LAST
    };


    Writing:
    SDL keyboard layout

    in Google gives a lot of useful information about handling that...
    Attached Files Attached Files
    Last edited by jomalin; June 12th, 2011 at 02:47.

  4. #4
    Ghost
    Join Date
    Dec 2010
    Location
    Madrid, Spain
    Posts
    368

    Default Re: KeeperFX 0.39a: Multiplayer game (writing the name)

    mefistotelis, can you add this defect to the Issues of KeeperFX Google Code? Just to don't forget that issue, something like "Keyboard layout autodetection needed" or something like that. Thanks

  5. #5
    Ghost
    Join Date
    Dec 2010
    Location
    Madrid, Spain
    Posts
    368

    Default Re: KeeperFX 0.39a: Multiplayer game (writing the name)

    Can this be added to Issues on KeeperFX Google Code please? As I said on the first post, Shift + "_" key writes the "?" character, DosBox corrected this behaviour in a past version...

Similar Threads

  1. KeeperFX .38 Crashes loading New Game
    By Rizedt in forum KeeperFX
    Replies: 11
    Last Post: February 3rd, 2011, 19:49
  2. Replies: 3
    Last Post: December 19th, 2010, 20:47
  3. any 1 up for a game?
    By stickywicky in forum DK2 Multiplayer
    Replies: 3
    Last Post: September 9th, 2010, 15:43
  4. Multiplayer in KeeperFX
    By theblitched in forum KeeperFX
    Replies: 2
    Last Post: January 2nd, 2010, 17:19

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •