Mouse keymap - rebind mouse dig/place
Mouse keymap - rebind mouse dig/place
Hi, I want to change my Minetest mouse controls, using the left click to put a block, the middle click for duplicate a block, and the right click for removing a block (like I have it in Minecraft). I want to know what are those hotkey codes for setting it in the minetest.conf file.
- rubenwardy
- Moderator
- Posts: 6424
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: United Kingdom
- Contact:
Re: Mouse keymap
Hi,
You'll need Minetest 5.4.0 - you can download the release candidate or wait until next week
Open minetest.conf and insert the following:
You can use KEY_MBUTTON to use the mouse button event, but unfortunately, minetest doesn't have a duplicate node action.
You'll need Minetest 5.4.0 - you can download the release candidate or wait until next week
Open minetest.conf and insert the following:
Code: Select all
keymap_dig = KEY_RBUTTON
keymap_place = KEY_LBUTTON
Core Developer | Donate | Join the Matrix chat! | My Twitter | Mods | Minetest Modding Book
Hello profile reader
Hello profile reader
Re: Mouse keymap - rebind mouse dig/place
Thank you rubenwardy!!
Who is online
Users browsing this forum: No registered users and 5 guests