Mouse keymap - rebind mouse dig/place

Post Reply
JCIBravo
New member
Posts: 4
Joined: Sun Jan 31, 2021 14:27
In-game: JCIBravo

Mouse keymap - rebind mouse dig/place

by JCIBravo » Post

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.

User avatar
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

by rubenwardy » Post

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:

Code: Select all

keymap_dig = KEY_RBUTTON
keymap_place = KEY_LBUTTON
You can use KEY_MBUTTON to use the mouse button event, but unfortunately, minetest doesn't have a duplicate node action.

JCIBravo
New member
Posts: 4
Joined: Sun Jan 31, 2021 14:27
In-game: JCIBravo

Re: Mouse keymap - rebind mouse dig/place

by JCIBravo » Post

Thank you rubenwardy!!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests