I wanted to know if it would be of interest to add the possibility to register custom key bindings to Minetest for mods purposes?
I see there's this already
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
player:get_player_control().up
I was wondering if it would be of interest to add these:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_control("j") -- defined by letter
minetest.register_control("k","cust1") -- custom table entry name
minetest.register_control(17,"ctrl1") -- defined by code
-- return error if custom key already defined so as to avoid mod conflicts?
-- Usage examples:
player:get_player_control().keyj -- automatically generated name
player:get_player_control().cust1
player:get_player_control().ctrl1
I am presuming the W3C's codes are general-purpose and not just for the web?
https://www.w3.org/2002/09/tests/keys.html
My own intention is to be able to add a mod that would allow the use of I,J,K,L keys as well as U,O,P to set yaw, pitch and usage, for full keyboard control.