<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Falcon's shared memory gives you the status of many of the cockpit lights, as well as basic flight data such as airspeed/position, etc. Also you get the raw values presented on the instrumentation (excluding MFD graphics and button labels, in F4:AF). <BR>
<BR>
As for HOTAS control actions and button presses, etc., you can't capture those directly from Falcon's shared memory flight data -- but there are other ways of doing that. <BR>
<BR>
One way is to actually read the keyboard layout file programmatically and then watch for those specific keystrokes and/or DirectX button presses (the ones that are actually configured in the key file); correlating these inputs via the keyboard layout file will tell you which actions are being triggered in Falcon based on user inputs on the HOTAS or keyboard (i.e. which callbacks in Falcon are being activated). Falcon does not acquire the keyboard or joystick exclusively, so it is possible to register with DirectX alongside of Falcon, for receiving updates when keyboard, mouse, and joystick events occur. When an event occurs, you just look through your key map (in memory) to determine the callback in Falcon that would have been activated due to that event.<BR>
<BR>
Source code and binaries for an F4 keyboard layout reader, compatible with all Falcon releases (accessible programmatically via COM, or .NET) can be found on my Assembla project site at <A href="http://www.assembla.com/spaces/lightningstools">www.assembla.com/spaces/lightningstools</A>. <BR>
<BR>
You can also find source code and binaries there for a Falcon shared memory reader (again, accessible programmatically via COM or .NET). <BR>
<BR>
<HR>
<BR>
From: E.Rajabally@lboro.ac.uk<BR>To: simpits-tech@simpits.org<BR>Date: Wed, 6 Aug 2008 14:14:28 +0100<BR>Subject: Re: [simpits-tech] F4 Allied Force data extraction<BR><BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
</STYLE>
<DIV><FONT face=Arial size=2>Hey Ido</FONT></DIV>
<DIV><FONT face=Arial size=2>I'd really like to extract positional data such as that listed at <A href="http://www.eagle9.nl/redirtest.asp?lokatie=/main/Programming/F4 Data Extraction/default.asp" target=_blank>http://www.eagle9.nl/redirtest.asp?lokatie=/main/Programming/F4%20Data%20Extraction/default.asp</A> (which is the main info source I've found, but is sketchy on implementation details for a novice like myself) but also cockpit interaction (i.e. button presses) and HOTAS control actions.</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>Eshan</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=idekkers@gmail.com href="mailto:idekkers@gmail.com">Ido Dekkers</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=simpits-tech@simpits.org href="mailto:simpits-tech@simpits.org">Simulator Cockpit tech list</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, August 06, 2008 12:48 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [simpits-tech] F4 Allied Force data extraction</DIV>
<DIV><BR></DIV>
<DIV dir=ltr>Hey Eshan<BR><BR>welcome to the mad house<BR><BR>the most info in the subject you can find at <A href="http://www.viperpit.org/" target=_blank>http://www.viperpit.org</A><BR>and <BR><A href="http://www.frugalsworld.com/" target=_blank>http://www.frugalsworld.com</A> in the forums<BR><BR>but mainly the first - it's all about the viper and F4<BR><BR>what exactly do you want to extract ?<BR><BR>Ido<BR><BR>
<DIV class=EC_gmail_quote>On Wed, Aug 6, 2008 at 11:33 AM, E.Rajabally <SPAN dir=ltr><<A href="mailto:E.Rajabally@lboro.ac.uk">E.Rajabally@lboro.ac.uk</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=EC_gmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi<BR>I'm a novice programmer but very interested in building a cockpit simulator<BR>using F4 Allied Force. I'm guessing this topic has come up before but I'm<BR>looking for information and sample code on data extraction, particularly<BR>using Java or C++? I would be most grateful for any help<BR>Many thanks<BR>Eshan<BR><BR>_______________________________________________<BR>Simpits-tech mailing list<BR><A href="mailto:Simpits-tech@simpits.org">Simpits-tech@simpits.org</A><BR><A href="http://www.simpits.org/mailman/listinfo/simpits-tech" target=_blank>http://www.simpits.org/mailman/listinfo/simpits-tech</A><BR>To unsubscribe, please see the instructions at the bottom of the above page. Thanks!<BR></BLOCKQUOTE></DIV><BR></DIV>
<HR>
<P><BR>_______________________________________________<BR>Simpits-tech mailing list<BR>Simpits-tech@simpits.org<BR>http://www.simpits.org/mailman/listinfo/simpits-tech<BR>To unsubscribe, please see the instructions at the bottom of the above page. Thanks!</BLOCKQUOTE><br /><hr />Reveal your inner athlete and share it with friends on Windows Live. <a href='http://revealyourinnerathlete.windowslive.com?locale=en-us&ocid=TXT_TAGLM_WLYIA_whichathlete_us' target='_new'>Share now!</a></body>
</html>