SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   Mapping Hydrophone volume to keyboard ? (https://www.subsim.com/radioroom/showthread.php?t=196383)

Fubar2Niner 06-24-12 05:00 AM

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 :arrgh!:

Best regards.

Fubar2Niner

runio 06-24-12 05:38 AM

Quote:

Originally Posted by Fubar2Niner (Post 1901020)
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 :arrgh!:

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.

Fubar2Niner 06-24-12 06:04 AM

Quote:

Originally Posted by runio (Post 1901039)
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

runio 06-24-12 03:34 PM

Quote:

Originally Posted by Fubar2Niner (Post 1901052)
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

Fubar2Niner 06-28-12 01:00 PM

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 !!!!! :yeah: Thanks for your help mate, the phones volume is so much easier to use now. Thanks a bunch kaleun :salute:

Best regards.

Fubar2Niner


All times are GMT -5. The time now is 07:58 PM.

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.