Wine and mouse wheel tilts

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Kunasha
Newbie
Newbie
Posts: 4
Joined: Sun Jun 27, 2010 7:28 am

Wine and mouse wheel tilts

Post by Kunasha »

I'm not happy with the way that Wine interpretes mouse wheel tilts (remaps them to scrolls)

I want to change this to keyboard input. I want to do this because I use the wheel tilt to change target in World of Warcraft when I play in Windows, and I want to carry this over to Linux.

I'm a bit of a n00b, but does anyone have any idea how I'd go about doing this? I know how to apply patches and compile from source.

I've tried using various mouse remapping or stroke gesture tools to do this, including xautomation, easystrokes, imwheel and so on, but none of them work like I want to - if I press two buttons at once it will ignore the reassignment.

Would really appreciate it! :)
- Kunasha
James McKenzie

Wine and mouse wheel tilts

Post by James McKenzie »

Kunasha wrote:
I'm not happy with the way that Wine interpretes mouse wheel tilts (remaps them to scrolls)

I want to change this to keyboard input. I want to do this because I use the wheel tilt to change target in World of Warcraft when I play in Windows, and I want to carry this over to Linux.

I'm a bit of a n00b, but does anyone have any idea how I'd go about doing this? I know how to apply patches and compile from source.

Windows does this through a special driver that is installed when
running the game and then unloading it when finished. This is not yet
possible when using Wine.

James McKenzie
Kunasha
Newbie
Newbie
Posts: 4
Joined: Sun Jun 27, 2010 7:28 am

Re: Wine and mouse wheel tilts

Post by Kunasha »

I'm not asking that the wheel tilts should be registered in the game, because the game can't register those at all, so that's exactly what I DON'T want.

It appears pretty clear to me that Wine handles these presses by remapping them to scrolling, and what I want to do is I want Wine to not remap them to scrolling, but to something else.
James McKenzie

Wine and mouse wheel tilts

Post by James McKenzie »

Kunasha wrote:
I'm not asking that the wheel tilts should be registered in the game, because the game can't register those at all, so that's exactly what I DON'T want.

It appears pretty clear to me that Wine handles these presses by remapping them to scrolling, and what I want to do is I want Wine to not remap them to scrolling, but to something else.
This will require special code which the developers have opted not to
do. Either you will have to find someone else to write this code or use
Windows. Wish I had a better answer, but there are a limited number of
volunteer developers on this FOSS project.

James Mckenzie
Kunasha
Newbie
Newbie
Posts: 4
Joined: Sun Jun 27, 2010 7:28 am

Post by Kunasha »

I know how to edit source code and how to compile from source.

Wine just happens to be a big project, so if I open up the source code it would take an eternity finding out where this piece of code.

If you can tell me where it is, I can make the change myself.
perryh

Wine and mouse wheel tilts

Post by perryh »

James McKenzie <[email protected]> wrote:
Kunasha wrote:
I'm not asking that the wheel tilts should be registered in the
game, because the game can't register those at all, so that's
exactly what I DON'T want.

It appears pretty clear to me that Wine handles these presses
by remapping them to scrolling, and what I want to do is I want
Wine to not remap them to scrolling, but to something else.
This will require special code which the developers have opted not
to do. Either you will have to find someone else to write this
code or use Windows. Wish I had a better answer, but there are
a limited number of volunteer developers on this FOSS project.
Perhaps the wheel tilts could be remapped to something else in
Linux or X, before Wine even sees them. That would be something
to ask about on the distro forum (or maybe the window manager's
forum, if it's desired to remap them only when the mouse is in a
Wine window).
Kunasha
Newbie
Newbie
Posts: 4
Joined: Sun Jun 27, 2010 7:28 am

Post by Kunasha »

Failing to do exactly that is why I'm here.

I've tried btnx, imwheel, udev, and easystroke, and all of them come with a common problem: The remaps work flawlessly until I hold down 2 mouse buttons at once. If I am holding down the right button and then tilt the wheel, it will execute the scrolling instead of what I mapped it to.

This makes for a huge problem when trying to use it for gaming.
So now I asked if it is possible to change the problem at its core.
User avatar
dimesio
Moderator
Moderator
Posts: 13372
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Kunasha wrote:I know how to edit source code and how to compile from source.

Wine just happens to be a big project, so if I open up the source code it would take an eternity finding out where this piece of code.

If you can tell me where it is, I can make the change myself.
http://wiki.winehq.org/SourceTreeStructure
Locked