Log in

View Full Version : Keymapping for middle mouse button?


Skweetis
08-03-05, 08:42 PM
I was just wondering how I can map a control to the "clicked" mouse wheel, or middle mouse button?

Thanks in advance.

James

cavalier889
08-04-05, 08:56 PM
I was just wondering how I can map a control to the "clicked" mouse wheel, or middle mouse button?

Thanks in advance.

James

I'm not sure about mapping an actual mouse click, but most mice come with software that allow the user to map a keystroke to a mouse click. That's probably your best bet.
:)

Sawdust
08-05-05, 10:39 AM
The code for the mouse button clicks are:
left = 0x01
right = 0x02
middle = 0x04

Here's a thread that might interest you since it gets into keymapping:
http://www.subsim.com/phpBB/viewtopic.php?t=39768&highlight=

This webpage I found lists the codes for other keys (partway down the page under EKEY_CODE):
http://irrlicht.sourceforge.net/docu/namespaceirr.html

And this page has a nice applet for download to tell you most of the codes (SH3 Key Checker):
http://www.delraydepot.com/tt/sh3.htm

Skweetis
08-05-05, 07:03 PM
Awesome! thanks. :up:

All I want to do is map the "hud" toggle to the middle mouse button (default keypad ./del) Since I normally stick to mous clicks for as much as possible!

James

Skweetis
08-05-05, 10:32 PM
Hmmm... guessing this is not possible... the "hud"toggle is not listed in commands_en... must be hardcoded. :cry:

Krieg-Schwein
08-06-05, 05:28 AM
get IntelliPoint software from M$ http://www.microsoft.com/hardware/mouseandkeyboard/Download.mspx
and install it then you can map the keys on your mouse to whatever you like for a specified program..It doesn't matter if it's a Microsoft mouse of not I have a Logitech MX510 gaming mouse and I like this better than the software that came with it

Type941
08-06-05, 07:27 AM
Hmmm... guessing this is not possible... the "hud"toggle is not listed in commands_en... must be hardcoded. :cry:

the Del button is fairly close to my right thumb, so it's not much of problem for me, but I did want to use he wheel to UpScope/DownScope.

Sawdust
08-06-05, 08:36 AM
...I did want to use he wheel to UpScope/DownScope.
The mouse wheel (0x05) is used for Command 73. It might not work (as the periscope up and down are two seperate commands), but it might be interesting to experiment with assigning it to the command for periscope operation. Also, it would only work for one of the two periscopes on the boat anyway.

Skweetis
08-06-05, 09:46 PM
get IntelliPoint software from M$ http://www.microsoft.com/hardware/mouseandkeyboard/Download.mspx

Great idea! Ill do that!