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
[RESOLVED] Addon for people with disability
- Beau Hollis
- Lockheed Martin
- Posts: 2452
- Joined: Wed Oct 06, 2010 3:25 pm
Re: Addon for people with disability
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
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
Prepar3D Software Architect
Re: Addon for people with disability
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.
Thank you very much.