Visit Captain Sim web site  
  Welcome, Guest. Please Login or Register

 

Page Index Toggle Pages: 1 Send TopicPrint
SDK manual (Read 2037 times)
ontheair
Full Member
*
Offline



Posts: 29
Joined: Jul 2nd, 2012
SDK manual
Jul 5th, 2012 at 9:56am
Print Post  
from page 6 :
<ControlsInfo>
Any action can be controlled by unlimited number of duplicating controls:
<Action name="fire" control="joystick:0:button:5"/>
<Action name="fire" control="Space"/>
<Action name="fire" control="VK_LBUTTON"/>
The sample shows you can fire using either joystick button 6 (5+1) or Space key, or mouse left-click.
Any control assignment can be changed.

Concerning the fire action controls : space key and mouse Left click are OK but I don't understand the comment "joystick button 6 (5+1)"  I just read above "joystick:0:button:5". Doesn't that mean the Button 5 is the active button to fire ?

Is there a way to precise that I'm using the Thrustmaster Hotas Cougar as my joystick ?

and for my info what is VK in VK_LBUTTON ?

Thanks
  
Back to top
 
IP Logged
 
ontheair
Full Member
*
Offline



Posts: 29
Joined: Jul 2nd, 2012
Re: SDK manual
Reply #1 - Jul 5th, 2012 at 1:30pm
Print Post  
After some investigation :

1) I now understand why the joystick button 6 (in the exemple above) is assigned to the fire control action. The reason is 5 = 6-1. In other words to assign button 6 you need to write 5.

2) VK means virtual key
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12349
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: SDK manual
Reply #2 - Jul 5th, 2012 at 5:04pm
Print Post  
That's because of the way FSX "sees" things. Like Window00 is opened with Shift+1, Window01 with Shift+2 etc. Once you get used to it (if you ever do), then it makes things a little bit easier to work with.

It's great that you figured it out on your own too. Wink
  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
 
  « Board Index ‹ Board  ^Top