Page 1 of 1

Are you able to use custom keybinds in your mod?

PostPosted: Fri Jul 01, 2016 16:50
by whitephoenix
I've seen a lot of github issues and forum topics about keybinds, yet it doesn't seem they actually got added to minetest. Is this a work on progress or what? I'm making a minimal sprinting mod and want to use get_player_control() to see if they player is holding CTRL.

So is this getting added or is already possible somehow?

EDIT: Additional question: are aux1 and sneak the same thing?

Re: Are you able to use custom keybinds in your mod?

PostPosted: Sat Jul 02, 2016 01:38
by kaeza
As you say, the most you can do is check for "game keys" (or "virtual keys") using `get_player_control`, but you don't have access to "hardware keys". Developers don't usually check out the forums much (sadly), so it's better to comment on the relevant Github issue(s) to give your support. Of course, if you are able to code those features feel free to provide patches.

Aux1 (a.k.a. "Use"/"special1") and Sneak are different keys: Aux1 (default 'E') is used for running when you have `fast` privilege, while Sneak (default 'Shift') is used for sneaking.

Note that either Use or Sneak may be used to climb down ladders, depending on the value of the `aux1_descends` setting in `minetest.conf` (true means use "Use" key to descend, false means use "Sneak" key to descend).