POV-Ray : Newsgroups : povray.off-topic : Keyboards & games : Re: Keyboards & games Server Time
9 May 2024 02:57:29 EDT (-0400)
  Re: Keyboards & games  
From: clipka
Date: 21 Jul 2018 06:02:19
Message: <5b5304ab$1@news.povray.org>
Am 21.07.2018 um 07:51 schrieb dick balaska:
> On 07/20/2018 11:18 PM, Mike Horvath wrote:
> 
>>
>> I will add XPilot soon if you'd like. But do note that what you linked
>> to is for German keyboards only!
>>
>>
>> Mike
> 
> Only is a strong word.  I don't know what keys are where on a German
> keyboard [1] but those commands are exactly in the right place for my US
> keyboard.  My guess is, at the raw key level, all western keyboards send
> the same keys and then at a higher level 'y' gets swapped with 'z';
> which is why software has to ask you what you have instead of it just
> knowing.

That is indeed the case.

If for example you take a German keyboard, scratch off all the labels,
and re-label the keys according to the UK standard, you have a perfectly
fine UK keyboard.

(It's not that simple to convert a US keyboard to a German or UK one,
because the two differ not only visually but also mechanically, the US
layout being based on the 101/104-key ANSI mechanical layout and the
German and UK keyboards being based on the 102/105-key ISO mechanical
layout. The primary differences are in the shape of the return key, with
one other key placed differently as a consequence, and in the size of
the left shift key, which is more narrow in the ISO layout to accomodate
one more key. The English Wikipedia mentions a total of six different
mechanical layouts in common use worldwide.)


This actually makes it hard to build custom keypads with letters
arranged alphabetically, e.g.

    A  B  C  D  E
    F  G  H  I  J
    K  L  M  N  O
    P  Q  R  S  T
    U  V  W  X  Y
    Z  .  ,  -  ?

because the USB standard for keyboards does not deal in characters(*),
just in keys. So if you designed the above keypad for the US market, a
German user would instead find it producing

    A  B  C  D  E
    F  G  H  I  J
    K  L  M  N  O
    P  Q  R  S  T
    U  V  W  X  Z
    Y  .  ,  ß  _

(*If you happen to know otherwise, please let me know.)


The problem with games is that some deal with key codes, while others
deal with characters.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.