queasycam icon indicating copy to clipboard operation
queasycam copied to clipboard

Customise keyboard controls?

Open Jachdich opened this issue 5 years ago • 3 comments

I have no idea if this is still active but would it be possible to add a way of customising the keyboard? I want to have it so that space is up and shift is down but I don't know how that would be done.

Jachdich avatar Apr 14 '19 14:04 Jachdich

Hey, @Jachdich! Thanks for the suggestion. That's a good idea! But yes, you're right; it's been quite a long time since I updated this library. My schedule is pretty busy these days, but I'll try to squeeze it in sometime soon. No promises, though. ;)

jrc03c avatar Apr 14 '19 21:04 jrc03c

Any updates on this? i Think this library is very usefull for FPS game development. Please consider doing this, mind that it needs some adjustments to accept keys such as SHIFT:

public char UP_KEY = 'q';
public char DOWN_KEY = 'e';
// and in draw()
if (keys.containsKey(UP_KEY) && keys.get(UP_KEY)) velocity.add(PVector.mult(up, speed));
if (keys.containsKey(DOWN_KEY) && keys.get(DOWN_KEY)) velocity.sub(PVector.mult(up, speed));

DominiqueAbouSamah avatar Aug 04 '22 13:08 DominiqueAbouSamah

Oh, geez! I can't believe I haven't checked back in on this since 2019! I'll try to make some time to make some fixes soon. Thanks for the reminder! :)

jrc03c avatar Aug 04 '22 15:08 jrc03c