Closed fqr1 closed 4 years ago
Hello
I'm trying to remap the keyboard, from awsd to arrows, something like "Gaming mode"
~/.phoenix.js
var setupHandlers = function() { return { keyup: new Key('w', ['ctrl'], function() { Phoenix.log("Key Up") //TODO send event to press up }), keydown: new Key('s', ['ctrl'], function() { Phoenix.log("Key Down") //TODO send event to press down }), keyleft: new Key('a', ['ctrl'], function() { Phoenix.log("Key Left") //TODO send event to press left }), keyright: new Key('d', ['ctrl'], function() { Phoenix.log("Key Right") //TODO send event to press right }), }; } var keyHandlers = setupHandlers();
But I don't know how to send the key events for the arrows
Could you give me some examples?
@fqr1 Hi! Phoenix does not support remapping keys. You can for example use Karabiner for that.
Thanks! I'll look at that
Hello
I'm trying to remap the keyboard, from awsd to arrows, something like "Gaming mode"
~/.phoenix.js
But I don't know how to send the key events for the arrows
Could you give me some examples?