Jump to content

Recommended Posts

Posted

I'm currently setting up a Warthog TARGET profile for BS2. I'd like to assign Free Turbine RPM to RDR ALTM. But I just can't seem to find out the TARGET syntax for KP+ and KP-.

 

(German Win7, German keyboard; English Installation of World + BS2, version 1.2.2.7570; TARGET version is 1.0).

 

At least in my installation, "Readjust Free Turbine RPM to nominal" is RALT + Num+, so I tried:

 

MapKey(&Throttle, RDRNRM, PULSE + R_ALT + KP+);

 

Compile Error: Syntax error: ) in dcs_bs_yurgon_v01.tmc at line 82

 

MapKey(&Throttle, RDRNRM, PULSE + R_ALT + KPPLUS);

 

Runtime Error: Symbol not found: KPPLUS in main ( line 82 in dcs_bs_yurgon_v01.tmc )

 

MapKey(&Throttle, RDRNRM, PULSE + R_ALT + KP_PLUS);

 

Runtime Error: Symbol not found: KP_PLUS in main ( line 82 in dcs_bs_yurgon_v01.tmc )

 

As a workaround, I'm now using the USB-code:

 

MapKey(&Throttle, RDRNRM, PULSE + R_ALT + USB[0x57]);

 

That works fine. But I must be missing something. What's the TARGET syntax for that Numpad plus (and minus, asterisk and slash) key?

Posted (edited)

Some time ago I found a file on the Internet that defines macros for the keyboard buttons using USB key codes. This made things a lot easier for me and greatly improved the readability of my target scripts.

 

The file is attached to this post.

 

The USB key codes for the numpad can be found at line 82 and the following.

 

I am sorry that I cannot give credit to the person who created this file since it is just too long ago that I found it on the web and I cannot remember.

iohid_usb_table.tmh.txt

Edited by Waxi
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...