Index | Thread | Search

From:
Matthieu Herrb <matthieu@openbsd.org>
Subject:
Re: Adding rumble/force feedback control to ujoy(4)
To:
Thomas Frohwein <tfrohwein@fastmail.com>
Cc:
tech@openbsd.org
Date:
Wed, 20 Nov 2024 21:52:03 +0100

Download raw body.

Thread
Hi,


On Tue, Nov 19, 2024 at 09:40:41AM -0500, Thomas Frohwein wrote:
> Hi tech@,
> 
> +
> +#define UJOYIO_RUMBLE	_IOW('J', 7, struct ujoy_rumble)
> +

Doesn't the '_IOW()' here mean that you need write access to
/dev/ujoy/<n> to use that ioctl() ?

Also, even though I'm partly responsible for the current situation as
porter of the now defunct ISA joy(4) driver
(https://man.openbsd.org/OpenBSD-3.0/i386/joy),  I think one should
think about plugging it into wsmouse(4) (adding a
WSMOUSE_TYPE_JOYSTICK to let applications make the difference). IT
will make supporting them in libinput-openbsd easier.

-- 
Matthieu Herrb