Log in

View Full Version : MOUSE - Can Anyone Help?


The Bad Wolf
12-01-07, 03:07 AM
Does anyone know the KEY codes for the 3 mouse buttons Left, Middle & Right. Have searched with Google but can't find them.

I noticed in the Commands_en file:-

[Cmd73]
Name=Cam_wheel_zoom
Ctxt=1
Key0=0x05,R,"M.wheel"

So I assume the wheel is 0x05

The reason behind my question!

I like to play the simulation with the console Off when not using it. Leaving it On feels as though you are walking about with a desk attached to you.
This makes it difficult when the sim is at night, as I rely on the monitor to illuminate my keyboard. Hitting the "D" instead of "S" when near the bottom gets bit hair raising. When I put the room light on, I can't see a thing on the screen.

solutions:-

1.Get an illuminated keyboard (mmmmaybe)

2.Put in a red bulb in my room (Bad idea. I might get callers asking how much I charge. Especially in my district)

3.Find out if other people have the same problem. And how they solve it.(That could turn into a comedy show)

4.Do a Mod. (i like this nice, cheap and challenging)

I'm sure the console (del) key is hard programmed. Wondered if an XML file could be used to convert the middle mouse button to the Del key. If you can convert voice commands, then this might be possible.

Also I thought of using the Go_back_to_prev_cam in the Commands_en file. There are still a lot of positions that are not used. Then use the right mouse button Key0=0x?.

This could also mean making a Commands_en file for each sub type used, as interiors can alter. These would install via SH3 Commanders/U-boat folder. I Know this means extra work when having to update each file during modding, but this could be worth the sacrifice.

jimmie
12-01-07, 12:34 PM
I really want to modify the NumPad Del for console since my keyboard (HappyHacking) doesn't have num pad at all!!

It seems so far (in this 3 years) no one has found solution within the game. Yeah, something could be done outside of the game - I've never thought about it until now...

That aside, I'll give you solution 1-a)
http://www.x-keys.com/xkeys/xkstick.php

I have one (not USB, PS/2 version for the HHK) and this can make you a lot geeky but in the sim freak way not like Seitek ilumi keys way :up: Keys backlits.

Tuddley3
12-01-07, 12:36 PM
First of all, let me suggest trying Setkeys :
http://files.filefront.com/SetKeys1+3zip/;6167435;/fileinfo.html

This is a very simple program for editing the keymaps for the keyboard. I don't think it had a way of changing mouse keymaps. It makes life much easier, I always had the habit of pressing the "P" key for periscope(Oops the made me go to periscope depth, ha ha, not no more). Infact I changed 75% of my keyboard hotkeys to my liking in just over 5 minutes. This would make it easier for you to mod a Commands file for each sub type in a quick manner.

As for playing in the dark(I am guilty of this also), I placed a small battery operated drawer light above my monitor aimed at the keyboard(Temporary until I buy an illuminated keyboard). I set it back far enough not to get any glare on the screen.

And as far as your neighbors wondering about a red light in your window, screw them I say. I bet if you showed most of them what it is for, they will be running to the nearest electronics store to purchase a copy of SH3:)

I'm not sure if I helped you much, but these are my suggestions. Good luck

The Bad Wolf
12-01-07, 02:54 PM
Thanks jimmie & Tuddley3 for your replies.

I wanted to get away from using the keyboard altogether, but it seems the console DEL key is going to make that impossible. Shame as everything else can be mouse driven.

I have already got quite a few new go-back commands in my game.

e.g.

1.From the Engineer view to the command room free camera. I usually set this to look at the fuel gauges as you can get a clearer view of the fuel situation.

2.From the command room to the aft room. This takes you closer to the observation camera.

The second one works for the IIa but not in the others. Thats why I thought you may need another Commands_en file.

The trouble is they are set to a Key in my case (NUM 0). I wanted to change this to the right mouse button to make it the same as the in-game go-back commands.

It gets rid of the "desk look" and adds a bit more realism to the game. But at the same time you can move around the boat easily.

The realism part is that you tend to use the boat instruments for imformation and also mouse click crew and objects. This gives you a better interaction.

Cheers

Trefoil
12-01-07, 04:06 PM
According to Sawdust, a poster on this very old thread -

http://www.subsim.com/phpBB/viewtopic.php?t=39768&highlight=key+commands&sid=91f8fab55aa635edb5b557ec28f6c7de

Left button KEY code = 0x01
Right button KEY code = 0x02
Middle button KEY code = 0x04

However, He did have difficulty setting the right mouse button for 'go back' commands. He discovered when you click the right mouse button, you always back out twice. eg. If you back out of the Bridge you jump to the Conning Tower and immediately to the Control Room.:-?

You do not say what type of mouse you have. If the drivers for it do not include the facility to program keystrokes to buttons like Microsoft intelliware or Logitech Mouseware, there are freeware utilities like X-Mouse Button Control, which allow the remapping of buttons on any mouse -

http://www.highrez.co.uk/downloads/XMouseButtonControl.htm

I also hate using the keyboard,:yep: & avoid it by using a combination of lots of 'Go_back_to_prev_cam' commands, remapping my logitech mouse keys (incl DEL key), & Integrated Orders.

Trefoil.

The Bad Wolf
12-01-07, 08:05 PM
Thankyou Trefoil

I really appreciate the time you took to hunt that post.

It looks like I'm going down the same path.

Tried the Mouse codes but they didn't work. Checked and re-checked but I can't find any reason why they shouldn't. The NUM Key (Ins) works.

[Cmd7]
Name=Go_back_to_prev_cam
Ctxt=1
Key0=0x60,,"Numpad Ins"
Key1=0x02,,"Right Mouse button"
Key2=0x04,,"Middle Mouse button"

Increased maxcommands from 189 to MaxKeyCommandsNb=300

Even put ; after the commands to make it the same as the Post.

Very strange.

I put the Key2 command in to see if it cured the double jump.

Perhaps somethings has been altered over time.

As for the mouse I am using a Belkin cordless (No drivers disc) so your link could be very helpful.

Cheers.

Trefoil
12-01-07, 08:56 PM
Hope I was able to assist - It actually took me very little time to find the 'go back' thread; It's on my list of SH3 IE favorites & I looked at it recently to assist in editing the Commands_en.cfg file, that came with OLC's new GUI.

I've used Belkin stuff in the past - They have a very good Support Center at their site -

http://www.belkin.com/support/

If you look under 'Computer Accessories' in the Product Support Browser, they seem to have manuals & drivers for every mouse they have ever made. There's every chance that the drivers will include a utility to program the mouse buttons, so you can map the DEL key etc. to them.

Good luck.:up:

The Bad Wolf
12-02-07, 12:23 AM
Thankyou Trefoil your a Star !!!

Went to Belkin, but couldn't find my mouse in there, so downloaded nearest to it.

Works a treat.

Num(DEL) is now on the middle mouse button.

I can now turn the console on/off with the mouse.

You have made the game even more enjoyable.

The Bad Wolf
12-02-07, 01:55 AM
Cracked it !!!

I can Play the game without the Keyboard.

Have mapped the Right button to the Key NUM(0) and the middle button to NUM(DEL)

Middle button switches on/off the console

Right button does the go-backs

Here's a few of the extra stations with Right button go-back

UZO ----> Conning Tower deck
Attack Periscope -----> Conning tower periscope
Observation periscope ----. Interior aft camera
Captain log ----> Interior fore camera

There's a load more but it looks like you can go back from most places to wherever you want.

Now to Test for Stability.

A Big Big Thankyou to all for Helping me to achieve It.

Cheers.

The Bad Wolf
12-02-07, 03:23 PM
Have been playing the game and everything seems OK.

Now I know it works the last stage is to buy a 5 button mouse and put the go-backs on the 4th button and the gun/flack fire button on the 5th. That will free the left mouse button again. Then add some more command icons ie Amidships job done.