SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 06-24-12, 05:00 AM   #1
Fubar2Niner
Silent Hunter
 
Fubar2Niner's Avatar
 
Join Date: Nov 2002
Location: London. UK
Posts: 4,175
Downloads: 279
Uploads: 0
Mapping Hydrophone volume to keyboard ?

Hi shipmates.

Like the question says, I want to map my h/phone volume control to my k/b but have no idea how to do it. I've looked in commands_en.cfg, which I guess is the right route to go, and have found.......

[cmd146]
Name=Change_hydrophone_volume
Ctxt=1

My guess is this is the correct route, but I have no idea about key codes etc. If anyone could help an old lag, I'd be most grateful

Best regards.

Fubar2Niner
Fubar2Niner is offline   Reply With Quote
Old 06-24-12, 05:38 AM   #2
runio
Watch
 
Join Date: Jul 2011
Location: Kielce, Poland
Posts: 29
Downloads: 31
Uploads: 0
Default

Quote:
Originally Posted by Fubar2Niner View Post
My guess is this is the correct route, but I have no idea about key codes etc. If anyone could help an old lag, I'd be most grateful
Just look here:
http://www.cambiaresearch.com/articl...odes-key-codes
You need to change these decimal values to hex.
So, to assign the shift-h key, you need to write:
Code:
Key0=0x48,s,"Shift+H"
Because:
the 'H' key is 72 dec = 48 hex
's' - action with the 'shift' key ('c' for the 'control' key).
Good luck.
runio is offline   Reply With Quote
Old 06-24-12, 06:04 AM   #3
Fubar2Niner
Silent Hunter
 
Fubar2Niner's Avatar
 
Join Date: Nov 2002
Location: London. UK
Posts: 4,175
Downloads: 279
Uploads: 0
Default

Quote:
Originally Posted by runio View Post
Just look here:
http://www.cambiaresearch.com/articl...odes-key-codes
You need to change these decimal values to hex.
So, to assign the shift-h key, you need to write:
Code:
Key0=0x48,s,"Shift+H"
Because:
the 'H' key is 72 dec = 48 hex
's' - action with the 'shift' key ('c' for the 'control' key).
Good luck.

Thanks for the info runio, will this make the example key a simple toggle ie. increase/decrease volume?

Best regards.

Fubar2Niner
Fubar2Niner is offline   Reply With Quote
Old 06-24-12, 03:34 PM   #4
runio
Watch
 
Join Date: Jul 2011
Location: Kielce, Poland
Posts: 29
Downloads: 31
Uploads: 0
Default

Quote:
Originally Posted by Fubar2Niner View Post
Thanks for the info runio, will this make the example key a simple toggle ie. increase/decrease volume?
I don't know, you have to check it yourself.

Greetings
runio is offline   Reply With Quote
Old 06-28-12, 01:00 PM   #5
Fubar2Niner
Silent Hunter
 
Fubar2Niner's Avatar
 
Join Date: Nov 2002
Location: London. UK
Posts: 4,175
Downloads: 279
Uploads: 0
Update

@runio

Hi shipmate, work has been a royal pita, so I didn't get chance to try out the keymap. Finished work early today so took the plunge...... It works !!!!! Thanks for your help mate, the phones volume is so much easier to use now. Thanks a bunch kaleun

Best regards.

Fubar2Niner
Fubar2Niner is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:26 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.