[RESOLVED] Addon for people with disability

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Locked
neocode
Posts: 2
Joined: Tue Dec 11, 2018 4:45 pm

[RESOLVED] Addon for people with disability

Post by neocode »

Hello, I have a physical disability that prevents me from using a joystick.

Currently, I am a Xplane user and use a virtual joystick I developed using Vjoy/Freepie. The mouse xy coordintes are translated to joystick positions.
To check where is the middle of the screen, and therefore center my virtual joystick, I wrote a plugin for Xplane/FlyWithLua that draws a vertical line in the exact middle of the screen.

I know I can use my virtual joystick also in P3D.
But I am not finding documentation on how I could draw the vertical line as I do in Xplane.

Could someone please point me towards the right direction?
I really want to switch to P3D to fly the PMDG airliners, but without this I am not able to.

Thanks in advance
User avatar
Beau Hollis
Lockheed Martin
Posts: 2452
Joined: Wed Oct 06, 2010 3:25 pm

Re: Addon for people with disability

Post by Beau Hollis »

You could do this in an instrument panel using XML, C++ or Flash/ActionScript. You can also add primitive shapes to any view using the ObjectRenderer PDK service. See the custom object draw sample in the SDK.

XML gauge tutorial:
http://www.prepar3d.com/SDKv4/sdk/panel ... orial.html

Scaleform overview:
http://www.prepar3d.com/SDKv4/sdk/panel ... rview.html

3D linde draw function:
http://www.prepar3d.com/SDKv4/sdk/pdk_a ... d471e1bfb1

Thanks
Beau Hollis
Prepar3D Software Architect
neocode
Posts: 2
Joined: Tue Dec 11, 2018 4:45 pm

Re: Addon for people with disability

Post by neocode »

I followed the instructions on adding the line using the XML Panels and, although it is a strange solution, it actually worked!

Thank you very much.
Locked