Control direction with arrow keys instead of mouse

Post Reply
User avatar
Megaf
Member
Posts: 99
Joined: Fri Nov 01, 2013 18:00
GitHub: megaf
IRC: Megaf
In-game: Megaf
Contact:

Control direction with arrow keys instead of mouse

by Megaf » Post

Hi, is there a way to control movement with arrow keys? Like good old FPS shooters or race games?

I would suggest the following configuration
ASWD leave as it is now.

UP = Look Up
Left and Right = rotation on y axis
Down = Look Down
Last edited by Megaf on Tue Feb 11, 2014 19:27, edited 1 time in total.
Megaf Server v4.0 Address: mt.megaf.info Port 30003

User avatar
AMMOnym
Member
Posts: 682
Joined: Tue Sep 10, 2013 14:18
IRC: AMMOnym
In-game: AMMOnym
Location: Slovakia

by AMMOnym » Post

I want it. Hmmm i need it becouse i dont have mouse

CitroPotter
Member
Posts: 50
Joined: Fri Jan 24, 2014 09:58

by CitroPotter » Post

Nice suggestion but i am Ok with the mouse.
Hi!

User avatar
Megaf
Member
Posts: 99
Joined: Fri Nov 01, 2013 18:00
GitHub: megaf
IRC: Megaf
In-game: Megaf
Contact:

by Megaf » Post

I think many people would like that, for some is just more natural, for others is a matter of not having a mouse (having a touchpad).

In my case, well, I'm playing minetest remotely, using VNC, this way I can play minetest at my workplace :P
Problem is, playing with mouse over VNC does not work very well.

I'm creating a poll, so let´s vote for arrows direction support!
Megaf Server v4.0 Address: mt.megaf.info Port 30003

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

I think having both as an option would be nice.
Back from the dead!

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

+1, this is probably not too hard, speed of camera movement and "look spring" (make camera pitch go back to 0 when pitch keys are not pressed) should be available and configurable too, as well as a "center view" key.

MustLoveCats
Member
Posts: 11
Joined: Sun Feb 09, 2014 20:15

by MustLoveCats » Post

I am perfectly fine with this only if we also are able to keep the old system of looking around with the mouse. Not everyone has a mouse, I know that, but remember not everyone doesn't!

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

MustLoveCats wrote:I am perfectly fine with this only if we also are able to keep the old system of looking around with the mouse. Not everyone has a mouse, I know that, but remember not everyone doesn't!
It's quite obvious it'll be kept, if this ever gets included. :)

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

by philipbenr » Post

Evergreen wrote:I think having both as an option would be nice.
As an option in the settings menu.

User avatar
onpon4
Member
Posts: 518
Joined: Thu Mar 21, 2013 01:54
GitHub: onpon4
In-game: diligentcircle
Contact:

by onpon4 » Post

This would be a good start for making Minetest playable in situations where a mouse doesn't make sense (on the TV, with a laptop off of a table, etc). It would be even better if Minetest could support gamepads directly rather than having to use software like Qjoypad, but I guess that's harder, so starting with full-keyboard support makes sense.
Last edited by onpon4 on Wed Feb 12, 2014 01:02, edited 1 time in total.

User avatar
Novacain
Member
Posts: 285
Joined: Sat Aug 31, 2013 01:03
Location: Skaaro

by Novacain » Post

another thing that would be nice is dig buttons. say, ctrl = left click, alt = right click
EXTERMINATE!!!
My Tronrealm modpack
My tronblocks mod

User avatar
Megaf
Member
Posts: 99
Joined: Fri Nov 01, 2013 18:00
GitHub: megaf
IRC: Megaf
In-game: Megaf
Contact:

by Megaf » Post

Novacain wrote:another thing that would be nice is dig buttons. say, ctrl = left click, alt = right click
Sure! That must be implemented with the arrows keys support!
Megaf Server v4.0 Address: mt.megaf.info Port 30003

MrElmux
Member
Posts: 17
Joined: Sun Dec 29, 2013 09:50
Location: North Western Germany

by MrElmux » Post

In general i would suppose configurable inputs

User avatar
Novacain
Member
Posts: 285
Joined: Sat Aug 31, 2013 01:03
Location: Skaaro

by Novacain » Post

MrElmux wrote:In general i would suppose configurable inputs
this makes me wonder, would it really be that hard to add a few lines to the engine to add alternate input for arrow keys? this seems like it would take, at most, a couple hours to implement. We already have the turn function for the mouse, keyboard shouldn't be too hard to add.
EXTERMINATE!!!
My Tronrealm modpack
My tronblocks mod

User avatar
Excalibur Zero
Member
Posts: 142
Joined: Tue Apr 02, 2013 19:45
GitHub: ExcaliburZero
Location: United States
Contact:

by Excalibur Zero » Post

Hybrid Dog wrote:It's already possible to control the mouse with the keyboard, in German, it's called "Tastaturmaus", I think.
In English it is called Mouse Keys. (https://en.wikipedia.org/wiki/Mouse_keys)

User avatar
Novacain
Member
Posts: 285
Joined: Sat Aug 31, 2013 01:03
Location: Skaaro

by Novacain » Post

so, can we get it in the engine?
EXTERMINATE!!!
My Tronrealm modpack
My tronblocks mod

User avatar
onpon4
Member
Posts: 518
Joined: Thu Mar 21, 2013 01:54
GitHub: onpon4
In-game: diligentcircle
Contact:

by onpon4 » Post

Excalibur Zero wrote:
Hybrid Dog wrote:It's already possible to control the mouse with the keyboard, in German, it's called "Tastaturmaus", I think.
In English it is called Mouse Keys. (https://en.wikipedia.org/wiki/Mouse_keys)
Mouse keys is designed for accessibility, not gaming... mouse keys on my system, for example, is a little choppy and very slow. Not to mention it's on the numpad, which laptops don't tend to have directly as normal keys; and diagonals are separate keys. I hope the suggestion of using mouse keys for playing Minetest is a joke! :)

User avatar
Novacain
Member
Posts: 285
Joined: Sat Aug 31, 2013 01:03
Location: Skaaro

by Novacain » Post

here's an idea: WASD for movement, IJKL for looking, U for item scroll left, O for item scroll right, R for dig node, Y for place node. FGH become noclip, fly and fast, C becomes inventory. when inside inventory, you could use arrow keys to navigate the boxes, and R for left click function, Y for right click function. T for stacks of ten.

And I personally would change drop from Q to P. it is too easy to drop something when you are going for the 1 key.

and the thing is, that is actually a fairly intuitive layout.
EXTERMINATE!!!
My Tronrealm modpack
My tronblocks mod

User avatar
Megaf
Member
Posts: 99
Joined: Fri Nov 01, 2013 18:00
GitHub: megaf
IRC: Megaf
In-game: Megaf
Contact:

by Megaf » Post

I just talked on IRC to CiaranG and it seems like we are halfway of getting arrow keys!
CiaranG and Megaf at #Minetest-Dev wrote:14:09:32 Megaf | Folks, I'm looking at the code trying to find an existing way to implement control via arrow keys instead of mouse, but I can't find anything very clear, can anyone help?
15:11:34 CiaranG | Megaf: Try this: https://github.com/CiaranG/minetest/com ... 868d01af7c
...
15:14:03 Megaf | CiaranG: did you request a pull?
15:14:27 CiaranG | No. There is a problem that I would want to resolve before I thought about that.
15:15:00 CiaranG | If you map the left/right mouse click to something else (i.e. a key) you can't then map it back to the mouse button (because the gui captures the mouse clicks)
15:15:19 CiaranG | (of course, you could just change the config file to map it back)
15:15:45 CiaranG | But it's good enough for what I needed it for, so I haven't tried to fix that yet. It's probably very easy.
...

15:58:56 Megaf | Ok, thank you CiaranG
So, now it's up to someone else to continue this.
Megaf Server v4.0 Address: mt.megaf.info Port 30003

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

by Sokomine » Post

For the android port, control via movement/orientation sensors would be great.
A list of my mods can be found here.

CiaranG
New member
Posts: 2
Joined: Mon May 09, 2011 21:00

by CiaranG » Post

Megaf wrote:I just talked on IRC to CiaranG and it seems like we are halfway of getting arrow keys!
I'm pretty sure just temporarily disabling the GUI capture of the mouse while the 'Press a new key' bit is active will solve the only problem that I'm aware of. Everything else about it works fine for me.

If I get time at the weekend I'll take a look at doing that.

Murkle
Member
Posts: 10
Joined: Wed Mar 30, 2016 02:56

Re: Control direction with arrow keys instead of mouse

by Murkle » Post

Has anything happened with this so far? {BUMP} lol Are bumps allowed here? -Sorry if not :) I just want to know :)
-Murkle

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: Control direction with arrow keys instead of mouse

by Wuzzy » Post

No.
But I agree with the feature. Minetest's controls need a lot of work.

See here:
- https://github.com/minetest/minetest/issues/4536
- https://github.com/minetest/minetest/issues/2361

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests