Connectionstring for joystick
Bastien Nocera
hadess at hadess.net
Mon Jul 24 09:55:05 PDT 2006
On Sat, 2006-07-22 at 11:34 -0400, David Zeuthen wrote:
> On Tue, 2006-07-11 at 20:47 +0200, Fredrik Nilsson wrote:
> > Hi,
> >
> > I'm using hal-sharp to find the connectionstring for my joystick.
> > I successfully retrived some information about the joystick, but can't
> > seem to find the right connectionstring.
> > The string I'm looking for is "/dev/input/js0", but looking in the
> > devicemanager the closest I get is "/dev/input/event3", and I don't have
> > access to connect to it.
> > Any guidance would be helpful.
>
> We only export information about the Linux event interface since that
> should be able to do everything you want yes? Oh, and on the matter of
> whether an unprivileged desktop user is privileged to access this or
> that device file is right now distribution / OS specific and not
> something we control via HAL.
>
> (It's something I personally think we might want to fix though so all
> distros / OS'es can use the same rules (coming from the desktop session)
> to set ACL's on device files and maybe even provide API for desktop apps
> to change these ACL's (obviously the user might need to OK this by
> putting in their password etc.) if the rules don't catch them. Something
> to think about.)
No need to go as low as the distro level. X11 has support for joysticks
(or at least it has some support), and it would need input hotplug to be
usable without reconfiguration.
--
Bastien Nocera <hadess at hadess.net>
More information about the hal
mailing list