queasycam
queasycam copied to clipboard
Customise keyboard controls?
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.
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. ;)
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));
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! :)