Keyboard Type (Qwerty or Dvorak) detection

前端 未结 4 1158
自闭症患者
自闭症患者 2020-12-10 07:59

I was asked this question by a friend, and it piqued my curiosity, and I\'ve been unable to find a solution to it yet, so I\'m hoping someone will know.

Is there a

4条回答
  •  天命终不由人
    2020-12-10 08:49

    You might be able to do it via DirectInput, or whatever the current DirectX-equivalent is. I type on a Dvorak keyboard, and about 50% of the games I buy detect my keyboard and reconfigure the default keymappings to support it (using ,aoe instead of wasd, for instance)

    And yes, as Brian mentioned, 'A' is the same on both keyboards.

提交回复
热议问题