Giter Site home page Giter Site logo

Comments (12)

Aaron1011 avatar Aaron1011 commented on April 30, 2024

@webhat: Can you elaborate on what problem you're experiencing?

from craft.

webhat avatar webhat commented on April 30, 2024

Sure, as you might know the mapping for the dvorak keyboard is different, as shown below, the keys ,AOQ are mapped to WASD positions on the keyboard rather than being mapped to the characters. BTW I'm on OSX.

skitched-20131215-012240

from craft.

fogleman avatar fogleman commented on April 30, 2024

You can change the key controls in config.h

from craft.

dykatz avatar dykatz commented on April 30, 2024

Should we add a file so that we do not have to recompile every time we want to change settings?

from craft.

commonquail avatar commonquail commented on April 30, 2024

@muddmaker: I already have that working. I hope to polish up and push later today.

from craft.

webhat avatar webhat commented on April 30, 2024

@commonquail I don't think this would solve it, unless it's mapping the characters not the keys.

from craft.

commonquail avatar commonquail commented on April 30, 2024

@webhat: I'm addressing a slightly different concern (#64) but you're right, it won't solve your problem (I've just confirmed). We can't tell GLFW to consider the user's keyboard locale so it consistently generates the same scan- and key codes, but with different keyboard layouts those codes are virtually worthless. GLFW has an open issue about it. I don't really know what to do about it but, in the meantime, if I don't change the bindings (i.e. retain WASD movement) and switch to Dvorak I can still move around.

[Edit] Well, it occurs to me we could make configuration take the key codes instead of the characters. I haven't tried it but that might actually completely solve the problem. That introduces the problem of users identifying key codes, however, and I almost think that's a bigger issue. The main argument for would be that key codes are unambiguous so even if you can't relate to them they work predictably, whereas in some cases, such as this one, the increased transparency of understandable values behaves unpredictably.

from craft.

webhat avatar webhat commented on April 30, 2024

After a little looking around I see there is a fix which has been posted to resolve glfw/glfw#114, dougbinks/glfw@5776f9a which maps the keycodes to the scan codes. It doesn't look like it has been merged yet.

I'll have to try it to confirm.

from craft.

weslly avatar weslly commented on April 30, 2024

I'm using Colemak and I love the fact that the game uses QWERTY for the controls and Colemak for the chat, this way I don't need the change the key bindings to match the WASD movement keys but I can type with Colemak in the chat. IMHO, I consider it more like a feature than a bug.

from craft.

bahamas10 avatar bahamas10 commented on April 30, 2024

+1 feature not a bug. i like QWERTY controls with dvorak chat.

from craft.

fogleman avatar fogleman commented on April 30, 2024

What they said.

from craft.

webhat avatar webhat commented on April 30, 2024

As this will be fixed in https://github.com/glfw/glfw/issues?milestone=2 I tend to agree that this is not a bug in Craft. Thanks.

from craft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.