Keyboard re-mapping (key binding)
- ioiotutu
- Offline
- Senior Member
- Posts: 56
- Thank you received: 1
is it possible remap some commands keys?
I need to swap arrow-left/arrow-right (X moving) with arrow-up/arrow-dn (Y moving). Is there a config file for this?
Thanks,
Michele
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7330
- Thank you received: 1177
John
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23563
- Thank you received: 4859
is it possible remap some commands keys?
I think so.
linuxcnc.org/docs/html/gui_axis.html#r1_11_4
Though I don't know if that allows you to re-map keys which are already allocated. I also have no idea what the correct syntax is, but you can probably just copy the program lines from inside Axis.
Please Log in or Create an account to join the conversation.
- ioiotutu
- Offline
- Senior Member
- Posts: 56
- Thank you received: 1
when i'm in front of the machine i see Y axis: moving right + direction, moving left - direction. X axis moving to me + direction and far to me - direction.
Home position is right - up (far to me).
I hope you understand my bad english!
So when push arrow key i need:
arrow-right -> Y +
arrow-left -> Y -
arrow-up -> X-
arrow-down -> X+
where can i find axis.py?
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7330
- Thank you received: 1177
Unless you have some strange machine... do you have a photo of it?
John
Please Log in or Create an account to join the conversation.
- ioiotutu
- Offline
- Senior Member
- Posts: 56
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- ioiotutu
- Offline
- Senior Member
- Posts: 56
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7330
- Thank you received: 1177
John
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23563
- Thank you received: 4859
Otherwise you would have to modify axis.py to change the key bindings. I scanned through the 3400 lines of code and nothing jumped out at me.
Is this thing on?
www.linuxcnc.org/component/option,com_ku.../lang,english/#14678
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7330
- Thank you received: 1177
John
Please Log in or Create an account to join the conversation.