Comments on: Linux and Hardware/OS Abstractions https:/2012/05/linux-and-hardwareos-abstractions/ Developer resources for the X-Plane flight simulator Thu, 07 Jun 2012 12:34:28 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Chris Serio https:/2012/05/linux-and-hardwareos-abstractions/#comment-5139 Thu, 07 Jun 2012 12:34:28 +0000 http://xplanedev.wpengine.com/?p=4312#comment-5139 In reply to NLS.

Please keep the comments on-topic guys. We don’t like having to moderate and remove off-topic responses.

The developer’s blog is not an open topic forum and it’s especially not intended as a way to solicit information from the developers on status.

]]>
By: NLS https:/2012/05/linux-and-hardwareos-abstractions/#comment-5138 Wed, 06 Jun 2012 21:26:26 +0000 http://xplanedev.wpengine.com/?p=4312#comment-5138 In reply to Max.

I second the question… it’s been long without betas or releases eh?
Also is x64 windows code coming as you guys said would come?

]]>
By: Mike https:/2012/05/linux-and-hardwareos-abstractions/#comment-5137 Tue, 05 Jun 2012 16:45:54 +0000 http://xplanedev.wpengine.com/?p=4312#comment-5137 In reply to Terrence.

Any ETA Terrence? June ?

Very excited, long wait. As you mentioned

]]>
By: Terrence https:/2012/05/linux-and-hardwareos-abstractions/#comment-5136 Tue, 05 Jun 2012 14:11:38 +0000 http://xplanedev.wpengine.com/?p=4312#comment-5136 A little later than expected:

http://www.youtube.com/watch?v=vVA66HAxn5k

]]>
By: Max https:/2012/05/linux-and-hardwareos-abstractions/#comment-5135 Mon, 04 Jun 2012 20:49:11 +0000 http://xplanedev.wpengine.com/?p=4312#comment-5135 How is your progress on 10.10?

]]>
By: Ben Supnik https:/2012/05/linux-and-hardwareos-abstractions/#comment-5134 Mon, 04 Jun 2012 14:26:08 +0000 http://xplanedev.wpengine.com/?p=4312#comment-5134 In reply to Fran.

There is no change to the dataref interface or UI behavior in 10.10.

When we redo the UI, we will continue to support the existing datarefs.

In the long term there’s probably a better way to allow for third party hardware but that’s not a short term priority.

]]>
By: Fran https:/2012/05/linux-and-hardwareos-abstractions/#comment-5133 Mon, 04 Jun 2012 00:57:40 +0000 http://xplanedev.wpengine.com/?p=4312#comment-5133 Thanks for the insights, Ben. Hate to request features using your nice blog, but here we go 🙂 A few of us DONT use joystick mapping to drive X-Plane, but existing datarefs. (the ones indicating yoke deflection and so on).

We already suffer some issues (like X-Plane thinking there’s no Joystick and drawing a “nice” cross for flying with the mouse, or, as far as I can tell, different settings (like linearity) not being applied to our inputs, so wanted to ask if at least we will be keeping same functionality.

Essentially our cockpits talk with X-Plane using a TCP connection and a plugin, which exposes our HW to all data refs. For us, elevator is no different than throttle, so would rather keep using a dataref rather than emulating a Joystick.

]]>
By: Ben Supnik https:/2012/05/linux-and-hardwareos-abstractions/#comment-5132 Sun, 03 Jun 2012 13:55:00 +0000 http://xplanedev.wpengine.com/?p=4312#comment-5132 In reply to Bill.

We are using HIDAPI on Mac/Lin to talk to HID devices, but not Linux – for Linux we have to use input.h. The problems on Linux are three-fold:
1. HIDAPI doesn’t feature a HID report descriptor parser (and descriptor parsing is not trivial). So it doesn’t provide the pre-parsed data that we need.
2. In some cases, the device permissions to view an input device as HID (and not as the more specific input/joy) require root permission. We do not want to have to walk our users through modifying udev to use their joystick – it really has to just work.
3. It appears that most modern distros come with hidraw, but the regular hid driver (the one where the OS parses the descriptor) is often compiled out.

If anyone ever resolves these issues we could use HIDAPI on three platforms instead of two, which might be nice for sharing presets across platforms. But we’re prepared to ship with input.h for now.

]]>
By: Ben Supnik https:/2012/05/linux-and-hardwareos-abstractions/#comment-5131 Sun, 03 Jun 2012 13:46:10 +0000 http://xplanedev.wpengine.com/?p=4312#comment-5131 In reply to erikb.

Chris and I should have started a betting pool as to how long before someone said “why not SDL.”

We looked at SDL but its functionality (in multiple areas) is often not rich enough to build the user experience we want. Sometimes the SDL API does less than our OS specific code now, and in sometimes it’s about the same but doesn’t contain the new features that we want. In some cases, modifying SDL to do what we want would be _highly_ non-trivial.

For example, for input devices we want to be able to track the addition/removal of hardware on the fly for hot-swapping devices, and pull as much meta-data off of the device as possible so that we can pre-initialize a device sanely, or load a preset for a known device.

]]>
By: Ondrej https:/2012/05/linux-and-hardwareos-abstractions/#comment-5130 Sun, 03 Jun 2012 12:04:17 +0000 http://xplanedev.wpengine.com/?p=4312#comment-5130 Thank you for this post and you’re absolutely right about Linux users contributing code or other things to XP. I think a lot of developers do work with Linux and they contribute in many ways, with third party software/libraries, plugins or tools. I for myself am counting me to the ones contributing tools for XP. Keep up the good work and this interesting blog.

]]>