Connectionstring for joystick

David Zeuthen david at fubar.dk
Sat Jul 22 08:34:25 PDT 2006


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.)

Cheers,
David




More information about the hal mailing list