![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Silent Hunter
![]() 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 |
![]() |
![]() |
![]() |
#2 | |
Watch
![]() Join Date: Jul 2011
Location: Kielce, Poland
Posts: 29
Downloads: 31
Uploads: 0
|
![]() Quote:
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" the 'H' key is 72 dec = 48 hex 's' - action with the 'shift' key ('c' for the 'control' key). Good luck. |
|
![]() |
![]() |
![]() |
#3 | |
Silent Hunter
![]() Join Date: Nov 2002
Location: London. UK
Posts: 4,175
Downloads: 279
Uploads: 0
|
![]() Quote:
Thanks for the info runio, will this make the example key a simple toggle ie. increase/decrease volume? Best regards. Fubar2Niner |
|
![]() |
![]() |
![]() |
#4 |
Watch
![]() Join Date: Jul 2011
Location: Kielce, Poland
Posts: 29
Downloads: 31
Uploads: 0
|
![]() |
![]() |
![]() |
![]() |
#5 |
Silent Hunter
![]() 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 !!!!! ![]() ![]() Best regards. Fubar2Niner |
![]() |
![]() |
![]() |
|
|