[RESOLVED] Addon for people with disability

Posts: 2
Joined: Tue Dec 11, 2018 4:45 pm

[RESOLVED] Addon for people with disability

Postby neocode » Tue Dec 11, 2018 4:56 pm

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: 2199
Joined: Wed Oct 06, 2010 3:25 pm

Re: Addon for people with disability

Postby Beau Hollis » Wed Dec 12, 2018 2:01 am

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

Beau Hollis
Prepar3D Software Architect

Posts: 2
Joined: Tue Dec 11, 2018 4:45 pm

Re: Addon for people with disability

Postby neocode » Wed Dec 12, 2018 5:15 pm

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.

Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 29 guests