[0.18.18] Toggle Filter Bug

Bugs that are actually features.
Post Reply
DJQuad
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Tue Feb 18, 2020 2:41 pm
Contact:

[0.18.18] Toggle Filter Bug

Post by DJQuad »

On mice without out a middle button, Toggle Filter is set to RMB, however when I right-click an empty inventory slot on a cargo wagon for example, nothing happens. I tried rebinding Filter Toggle from RMB to another key but it says it has to be mouse-related, and all other combinations of shift/alt/ctrl/RMB/LMB are taken.

If you need any further info please let me know.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13219
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.18.18] Toggle Filter Bug

Post by Rseding91 »

Thanks for the report however as far as I can see there is no such logic to change the default key binding based off the mouse the computer has.

You need a mouse with a scroll wheel to play the game because as you said: the other combinations of buttons are already used.
If you want to get ahold of me I'm almost always on Discord.

DJQuad
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Tue Feb 18, 2020 2:41 pm
Contact:

Re: [0.18.18] Toggle Filter Bug

Post by DJQuad »

Thanks for the reply. It's a Lenovo mouse that came with the PC. It does have a scroll wheel but pressing it doesn't act like a middle mouse button.

I originally reported this in "Simple Questions and Short Answers" and many others said it's a bug and to report it.

Edit: There's clearly some sort of logic involved because when going into the default keybindings, there's nothing that's bound to MMB.
controls.png
controls.png (1.13 MiB) Viewed 1634 times
This varies from https://wiki.factorio.com/Keyboard_bindings#Inventory

DJQuad
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Tue Feb 18, 2020 2:41 pm
Contact:

Re: [0.18.18] Toggle Filter Bug

Post by DJQuad »

Since you don't think this is a bug, what's the workaround?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13219
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.18.18] Toggle Filter Bug

Post by Rseding91 »

DJQuad wrote:
Thu Apr 16, 2020 1:37 pm
Since you don't think this is a bug, what's the workaround?
You need a mouse with a middle button that's clickable.
If you want to get ahold of me I'm almost always on Discord.

DJQuad
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Tue Feb 18, 2020 2:41 pm
Contact:

Re: [0.18.18] Toggle Filter Bug

Post by DJQuad »

It's stupid not to support that but oh well. You were incorrect about the "no such logic to change the default key binding based off the mouse"

It would take all of 4 lines of code to fix this.

Code: Select all

lbutton & rbutton::mouseclick, middle
rbutton & lbutton::mouseclick, middle
rbutton::mouseclick, right
lbutton::mouseclick, left

mmmPI
Smart Inserter
Smart Inserter
Posts: 2771
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: [0.18.18] Toggle Filter Bug

Post by mmmPI »

DJQuad wrote:
Tue Apr 14, 2020 1:43 pm
all other combinations of shift/alt/ctrl/RMB/LMB are taken.
Rseding91 wrote:
Thu Apr 16, 2020 4:51 pm
You need a mouse with a middle button that's clickable.
i have to respectfully disagree :
magictrick.jpg
magictrick.jpg (89.26 KiB) Viewed 1539 times
works fine for me.

PS: i found a funny thing, when you try to bind it to "wheel up", it says "it has to be mouse enable" to justify not accepting which is slightly misleading.

DJQuad
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Tue Feb 18, 2020 2:41 pm
Contact:

Re: [0.18.18] Toggle Filter Bug

Post by DJQuad »

The workaround works. Thanks! :D

Post Reply

Return to “Not a bug”