[0.8.1] Tiltwheel buttons are not detected

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [0.8.1] Tiltwheel buttons are not detected

Re: [0.8.1] Tiltwheel buttons are not detected

by Graf Zahl » Wed Dec 09, 2020 7:34 am

As expected. For some reason the horizontal wheel is not exposed in DInput.
No idea if it doesn't exist there or if it was forgotten.

Re: [0.8.1] Tiltwheel buttons are not detected

by Gez » Wed Dec 09, 2020 7:16 am

GZDoom: 0
Raze: 2 (no idea why, since default is 0 and I don't remember ever changing that)

I changed it to 0 and it now works, thanks. I guess this can be closed.

Re: [0.8.1] Tiltwheel buttons are not detected

by Graf Zahl » Wed Dec 09, 2020 6:16 am

what's your settings for 'in_mouse' in both games?

Re: [0.8.1] Tiltwheel buttons are not detected

by Gez » Wed Dec 09, 2020 6:14 am

mjr4077au wrote:What version of GZDoom are you on? I can't make it work in GZDoom 4.5.0. Binds fine in both games but performs no action. And what OS are you on? I can't see any supporting code in any other platform besides SDL.
GZDoom 4.5 works fine for me on Windows, as have all previous versions of GZDoom and ZDoom (and Zandronum and Skulltag) since 2007.

Re: [0.8.1] Tiltwheel buttons are not detected

by mjr4077au » Wed Dec 09, 2020 5:32 am

I'll test that out tomorrow, just jumped into bed sorry. I didn't realise that at the time but appreciate the insight ☺️

Re: [0.8.1] Tiltwheel buttons are not detected

by Graf Zahl » Wed Dec 09, 2020 5:25 am

invprev and invnext are not +/-
Binding mouse wheels to button actions is a known problem and simply cannot work because the wheel has no "held down" state.

Re: [0.8.1] Tiltwheel buttons are not detected

by mjr4077au » Wed Dec 09, 2020 4:45 am

I've chased it all the way to `FButtonStatus::PressKey()` and it gets there.

If I do something like "bind MWheelLeft stat", I get stat output in the console, just seems to be +/- commands. +crouch does not work, for instance. Has to be something in `C_DoCommand()`.

Re: [0.8.1] Tiltwheel buttons are not detected

by Graf Zahl » Wed Dec 09, 2020 4:22 am

Does it even get there for left and right wheel actions?

Re: [0.8.1] Tiltwheel buttons are not detected

by mjr4077au » Wed Dec 09, 2020 4:16 am

Yeah, but in `FMouse::WheelMoved()` irrespective of what axis is passed to that `WheelMouse[]` array, the game will only set `ev.data` to `KEY_MWHEELDOWN` or `KEY_MWHEELUP`, never keyfefs for `KEY_MWHEELRIGHT` or `KEY_MWHEELLEFT`.

Using raw input on my end (in_mouse 0).


Ignore all of the above... No idea why its not working in either port for me, then.

Re: [0.8.1] Tiltwheel buttons are not detected

by Graf Zahl » Wed Dec 09, 2020 4:10 am

Support in Windows is there, but a bit stupid, see i_mouse.cpp, line 345.
But from the looks of it the second wheel axis is only supported in RawInput and GUI mode, not DInput.

Re: [0.8.1] Tiltwheel buttons are not detected

by mjr4077au » Wed Dec 09, 2020 3:55 am

Gez wrote:I use mwheelleft/mwheelright to change inventory selection. It works fine in GZDoom and has always worked fine for as long as I remember. But it does not work in Raze, I tried in Duke and in Shadow Warrior. I even edited the ini to paste it in the relevant bindings sections (since I couldn't bind them in the customize controls submenu), the binding shows in the menu as a result, but the buttons still have no effect in the game.

Code: Select all

MWheelRight=invnext
MWheelLeft=invprev
What version of GZDoom are you on? I can't make it work in GZDoom 4.5.0. Binds fine in both games but performs no action. And what OS are you on? I can't see any supporting code in any other platform besides SDL.

Re: [0.8.1] Tiltwheel buttons are not detected

by mjr4077au » Wed Dec 09, 2020 2:08 am

Apparently my M720 Triathlon has a tilt wheel so I can check this out.

Re: [0.8.1] Tiltwheel buttons are not detected

by Graf Zahl » Wed Dec 09, 2020 1:06 am

If it doesn't even work in the menu the keys get eaten long before that. I do not have a device that supports them so I cannot test.

[0.8.1] Tiltwheel buttons are not detected

by Gez » Tue Dec 08, 2020 5:16 pm

I use mwheelleft/mwheelright to change inventory selection. It works fine in GZDoom and has always worked fine for as long as I remember. But it does not work in Raze, I tried in Duke and in Shadow Warrior. I even edited the ini to paste it in the relevant bindings sections (since I couldn't bind them in the customize controls submenu), the binding shows in the menu as a result, but the buttons still have no effect in the game.

Code: Select all

MWheelRight=invnext
MWheelLeft=invprev

Top