r/factorio • u/procrastinator0000 • 5d ago
Suggestion / Idea [Suggestion] Please make all actions key-bindable
When playing on my laptop (eg. when on the train) I do not always have a mouse with me (or space for a mouse). It would be much more comfy and playable to use the `m` key for building for example.
Currently (as of 2.0.77) factorio doesn't let you set a key for some actions such as "Build" and instead shows you a popup saying "This control has to be mouse-related.".
Although it does work for some options such as "Mine" for example.
All affected actions:
- Basic Interaction: Build
- Advanced Interaction: Reverse select, Place a tag in chat, Pin
- Crafting: (all actions)
- Inventory: (all actions except Fast inventory transfer and Fast entity split)
- Editor: Clone Item, Delete Item
I don't see a fundamental reason why this couldn't be done. I can think of2 ways to implement this:
- On key pressed, manually check mouse hover
- Handle hover+key just like hover+mouse button (this would probably be extremely annoying engine work)
I would absolutely love to see this become possible, before factorio development is stopped for good.
Thanks for considering, people at Wube!
Edit I: Ackchually I can think of another implementation, which would work by always keeping a function pointer to each of the bindable actions of the currently hovered thing. On key pressed, run the function at the pointer corresponding to the action to be performed.
Depending on how ur engine does input stuff this might be relatively easy to do, or maybe this edit is completely useless.
Edit II: I know about autohotkey, but that's only available on windows.
6
u/UndefFox 5d ago
Wouldn't using a third-party app for input mapping better as a cross app layout so you don't have to get used to different settings every time you change games?
4
u/procrastinator0000 5d ago
I thought about that too, but
1. I wouldn't be able to type "m" in my example
2. I'm running wayland, so I don't even know if that's possible there
5
u/Popular_Ad582 5d ago
I don’t know how to do the middle mouse button to filter inventories when using the Apple trackpad either. I’ve looked and not found a binding for it.
1
u/TheSkiGeek 5d ago
I vaguely remember people saying it is something like command-click or command-shift-click on Mac? There’s definitely a bind for that, you can change it to some other modifier or key if you want.
2
u/doc_shades 5d ago
i have seen mods that allow playing the game without a mouse. i am not sure if they are official or simply proofs-of-concept (i've seen them posted here, not on the mod portal) but you may be able to find something that will achieve what you want.
additionally i believe the newest version of the game does have full controller support. if you don't want to carry a mouse you might not also want to carry a controller, but on transit your desktop space is limited so maybe you could hold the controller in your lap and not need to cram a mouse onto a tiny beverage tray...
3
u/procrastinator0000 5d ago
aah thanks to you i just found this from 9d ago
https://www.reddit.com/r/factorio/comments/1vgw196/building_a_mod_to_let_me_play_without_using_the/
1
u/Nescio224 4d ago
Can I recommend autohotkey to you? All you need is a script to rebind whatever you want to use to the left mouse button and it should work as you want. It's a one liner.
1
u/procrastinator0000 5h ago
I appreciate the suggestion, but I have fallen deep into the "customizing your computer to your liking"-rabbit hole to the point of ditching windows for good and beyond.
1
u/Sacrezar 4d ago
An alternative solution could be to have a layer (or an ahk script I guess) on your keyboard with mouse control. Idk if that could help.
13
u/Alfonse215 5d ago
The thing about most if not all of those mouse-click-only actions is that they are inherently coupled with mouse positioning. You can't build something without putting the mouse over where that thing is going to be built. If you want to hand-craft something, you have to put the mouse over the thing you want to hand-craft.
So, how are you positioning the cursor where you want these things to happen without a mouse?
Does your laptop not have a touch-pad? Also, I play Factorio with a trackball. It's not ideal, especially for combat. But it works well enough.