Page 1 of 1

[RESOLVED] Addon for people with disability

Posted: Tue Dec 11, 2018 4:56 pm
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

Re: Addon for people with disability

Posted: Wed Dec 12, 2018 2:01 am
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: ... orial.html

Scaleform overview: ... rview.html

3D linde draw function: ... d471e1bfb1


Re: Addon for people with disability

Posted: Wed Dec 12, 2018 5:15 pm
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.