Xbox controller

14 views
Skip to first unread message

danlava

unread,
Aug 1, 2020, 8:39:34 PM8/1/20
to TurboVNC User Discussion/Support
Hello,
is there any way to plug in a USB xbox type controller like this one(https://www.easysmx.com/products/easysmx-esm-9100-wired-game-controller)
into the VNCviewer client and have its input forwarded to the VNCServer.
Im using the xboxdrv and ubuntu 18.04 on both machines.
THanks,
Dan

DRC

unread,
Aug 2, 2020, 12:34:37 PM8/2/20
to turbovn...@googlegroups.com
In order to support Wacom tablets, TurboVNC includes the GII extension
to the RFB protocol, which basically implements a remote X Input
interface.  Thus, it would be straightforward to support various types
of X Input devices remotely from Linux-->Linux, although I have only
personally tested Wacom tablets.

So, can it be made to work?  Probably, if the Xbox controller appears as
an X Input device on the client ('xinput --list --long' will tell you.)

Does it currently work?  Probably not 100%, because I only focused on
the types of X Input devices needed by Wacom tablets when I implemented
the remote X Input feature.  Also, it may be necessary to upgrade the
TurboVNC Viewer to use X Input v2, which is on tap for TurboVNC 3.0:
https://github.com/TurboVNC/turbovnc/issues/156.

If the Xbox controller does appear as an X Input device on the client,
then you may also see it as an X Input device in the TurboVNC Server
session.  Comparing 'xinput --list --long' between client and server
will give an idea of where we stand.

DRC

DRC

unread,
Jan 18, 2021, 8:08:23 PM1/18/21
to TurboVNC User Discussion/Support
Note that the TurboVNC Helper in the evolving TurboVNC 3.0 code base has been upgraded to use X Input v2, but that necessitated (at least temporarily) limiting support to Wacom devices.  The issue is that, in X Input v2, the extended pointer device type (stylus, eraser, pad, touch, etc.) can only be obtained using driver-specific X Input properties, so supporting non-Wacom devices will require determining how to obtain the device type for those devices.  It was unclear whether non-Wacom extended pointer devices worked with TurboVNC 2.2.x anyhow, and I am unaware that anyone has ever tested that.  It's entirely possible that they never did.

To make a long story short, I can probably support any extended pointer device (minus multi-touch support, which is a horse of a different color) in the Linux TurboVNC Viewer as long as I can get access to the device (or funding to purchase one) and funding for my labor to test it and implement support for it.

Reply all
Reply to author
Forward
0 new messages