Adding new key-bindings

User avatar
Tedypig
Member
 
Posts: 284
Joined: Tue Mar 05, 2013 12:33
IRC: Piggybear87
In-game: Piggybear

Adding new key-bindings

by Tedypig » Thu Jan 16, 2014 02:04

Hi, can you add key-bindings with Lua, or would it have to be done with the engine with C++? I want to add bindings for look (up, down, left, and right) so I can use my 360 controller with Minetest. Thanks for any and all help. :)


EDIT: Also bindings for the three mouse functions (left click, right click, and scroll)
Last edited by Tedypig on Thu Jan 16, 2014 02:05, edited 1 time in total.
01010100 01100101 01100100 01111001 01110000 01101001 01100111
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Thu Jan 16, 2014 06:31

You better use Xpadder if you want to use a gamepad with Minetest.
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
Tedypig
Member
 
Posts: 284
Joined: Tue Mar 05, 2013 12:33
IRC: Piggybear87
In-game: Piggybear

by Tedypig » Thu Jan 16, 2014 20:24

I cannot use Xpadder, it's not free. I am broke right now, I'm even using my phones internet (via tether) to write this. I am using j2k (joy 2 keys) and it doesn't support mouse movements and clicks. It's the only free controller support program I could find. I know that you make your own builds, could you tell me how to add button look, build, and destroy? I would be very thankful. Thanks. :)
01010100 01100101 01100100 01111001 01110000 01101001 01100111
 

User avatar
DeepGaze
Member
 
Posts: 332
Joined: Fri May 10, 2013 00:49
GitHub: DeepGaze
IRC: DeepGaze
In-game: DeepGaze

by DeepGaze » Thu Jan 30, 2014 10:50

there's no place like 127.0.0.1
The deep life Minetest text page
minetest cards
 

User avatar
Pitriss
Member
 
Posts: 253
Joined: Mon Aug 05, 2013 17:09
GitHub: Pitriss
IRC: pitriss
In-game: pitriss

by Pitriss » Thu Jan 30, 2014 12:11

qjoypad is working good for me
I reject your reality and substitute my own. (A. Savage, Mythbusters)
I'm not modding and/or playing minetest anymore. All my mods were released under WTFPL. You can fix/modify them yourself. Don't ask me for support. Thanks.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 20 guests