Search found 37 matches

by flyboy7798
Mon Jun 08, 2020 3:26 pm
Forum: Software Development Kit (SDK) Questions
Topic: Event Masking with PDK
Replies: 0
Views: 7709

Event Masking with PDK

I'm familiar with SimConnect being used for masking user input for things like PITOT_HEAT_TOGGLE to allow intercepting the event, and after performing some logic, then triggering the event (which in the PDK [PanelSystem->TriggerKeyEvent(event_id, value)] seems straight forward). I've looked at the P...
by flyboy7798
Thu Mar 12, 2020 7:07 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Panel Service
Replies: 4
Views: 21860

Re: PDK Panel Service

Thank you, I will take a look. It's much appreciated.
by flyboy7798
Wed Mar 11, 2020 1:38 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Panel Service
Replies: 4
Views: 21860

PDK Panel Service

Is there an example of how to get an instance of a panel service object via the PDK? I've looked over the examples and all I seem to find is where it's used to register and unregister a key event handler but not much else. I would like to do something like this via the PDK: IPanelCCallback* pIPanelC...
by flyboy7798
Tue Nov 19, 2019 7:27 pm
Forum: Software Development Kit (SDK) Questions
Topic: Different Eyepoint with PDK
Replies: 1
Views: 17373

Different Eyepoint with PDK

We have managed to get the eyepoint offset from the PDK using GetCameraOffset() successfully. We have also successfully gotten data from GetLLARadians and GetPBHRadians. However, using GetCameraOffset() only gives us the offset from the default Virtual cockpit eyepoint, as it is specified in aircraf...
by flyboy7798
Sun Nov 17, 2019 5:07 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Services/Variables for getting VC Eyepoint
Replies: 1
Views: 16941

Re: PDK Services/Variables for getting VC Eyepoint

Think I found it, it the Window and Camera Service:

GetLLARadians
GetPBHRadians
by flyboy7798
Sat Nov 16, 2019 4:52 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Services/Variables for getting VC Eyepoint
Replies: 1
Views: 16941

PDK Services/Variables for getting VC Eyepoint

I'm aware of and have used the following LLA and PBH Pvars (through simconnect) that get the eyepoint active "camera", ACTIVE EYEPOINT LAT, Radians ACTIVE EYEPOINT LON, Radians ACTIVE EYEPOINT ALT, Meters ACTIVE EYEPOINT PITCH, Radians ACTIVE EYEPOINT BANK, Radians ACTIVE EYEPOINT HEADING,...
by flyboy7798
Fri May 10, 2019 2:01 am
Forum: Software Development Kit (SDK) Questions
Topic: PDK Sound Service Instance -> IsPlaying() Function
Replies: 4
Views: 15311

Re: PDK Sound Service Instance -> IsPlaying() Function

This code hasn't changed since it worked in v4.4. I simplified the code in the earlier post. Here's a section of code which gets called at 18hz: if (!override_gear_warning) playLandingGearWarningSound(); else if (override_gear_warning) stopLandingGearWarningSound(); The larger context of that snippe...
by flyboy7798
Wed May 08, 2019 7:05 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Sound Service Instance -> IsPlaying() Function
Replies: 4
Views: 15311

Re: PDK Sound Service Instance -> IsPlaying() Function

Clifton, thanks for the rapid response. To answer the first question, the debug log shows this sequence: pPdkSoundInstance->Play() IN playSound() RETURNED S_OK pPdkSoundInstance->IsPlaying() IN stopSound() RETURNED E_FAIL pPdkSoundInstance->IsPlaying() IN playSound() RETURNED E_FAIL pPdkSoundInstanc...
by flyboy7798
Tue May 07, 2019 4:10 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Sound Service Instance -> IsPlaying() Function
Replies: 4
Views: 15311

PDK Sound Service Instance -> IsPlaying() Function

The other forum topic related to this problem was marked resolved: https://prepar3d.com/forum/viewtopic.php?f=6311&t=131939 I have updated to 4.5 and now the warning sound (that was working) will play once and then the next time IsPlaying() is called it returns E_FAIL. The same code that was wor...
by flyboy7798
Wed Feb 20, 2019 2:58 pm
Forum: Simulation Object Development Questions
Topic: Multiple Gauge Declarations in a Single DLL
Replies: 2
Views: 12459

Re: Multiple Gauge Declarations in a Single DLL

Doug, thanks for reminding me, I had forgot that it was there.
by flyboy7798
Tue Feb 19, 2019 11:54 pm
Forum: Simulation Object Development Questions
Topic: Multiple Gauge Declarations in a Single DLL
Replies: 2
Views: 12459

Multiple Gauge Declarations in a Single DLL

Is it possible to have multiple gauge declarations (one non-GDI+ and one GDI+) compiled into one DLL? I have experimented, talked to other developers, and so far it doesn't seem to work. So far, I can have one visible gauge, but not two or more in the same DLL. Any help would be greatly appreciated.
by flyboy7798
Mon Dec 17, 2018 8:12 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 54484

Re: PDK Sound Service Instance -> Play() Function

Benny, thanks for your reply. Thanks, Clifton for the information. Both your responses make sense as to why I'm getting the results in the debugger. I do have a followup question, I declare the both CComPtrs for the sound service and the sound instance as private. I initialize both smart pointers, i...
by flyboy7798
Sun Dec 16, 2018 11:13 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 54484

Re: PDK Sound Service Instance -> Play() Function

Benny, Sounds like a plan to me! And thank you for helping. I had some time to dig a little deeper on this today, I ran down the error when I check if IsPlaying() is true or not, the HRESULT comes back as 0x887800aa. That error code is, I'm pretty sure for the LM sound.dll which I assume is using Di...
by flyboy7798
Sun Dec 16, 2018 12:33 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 54484

Re: PDK Sound Service Instance -> Play() Function

Thanks Benny, Then the only other question I have is why once the CComPtr which is a class variable (private) is initialized in the constructor becomes useless (the value it returns in the HRESULT looks like a hexidecimal value) when I call the Play() in a class function. I can call play in the cons...