Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485114 - dev-libs/libevdev - an API for creating userspace joystick-like devices and reading events from existing one
Summary: dev-libs/libevdev - an API for creating userspace joystick-like devices and r...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2013-09-16 17:18 UTC by Stanisław Halik
Modified: 2013-10-13 23:12 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libevdev-0.3.ebuild (libevdev-0.3.ebuild,696 bytes, text/plain)
2013-09-16 20:47 UTC, Iván Atienza
Details
libevdev ebuild by a first-timer (libevdev-9999.ebuild,491 bytes, text/plain)
2013-09-16 22:12 UTC, Stanisław Halik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stanisław Halik 2013-09-16 17:18:55 UTC
The library <http://cgit.freedesktop.org/libevdev/> is an API for creating userspace joystick-like devices and reading events from existing ones. 

Personal use-case is a driver for a game <http://forum.scssoft.com/viewtopic.php?f=119&t=46829&p=79310#p79310> to support head tracking by rotating game actor's point of view and translating (moving) him in game space. There's no other API for that other than 'analog' joystick-like device.

My software supports Oculus Rift, webcams via different tracking methods, etc. But no shamelezs plug.

Reproducible: Always

Steps to Reproduce:
1. emerge -s libevdev
Actual Results:  
Nothing found

Expected Results:  
Ebuild -9999 found
Comment 1 Stanisław Halik 2013-09-16 17:20:39 UTC
Please also see <http://gpo.zugaina.org/chromeos-base/libevdev>, perhaps some ebuild can be adapted or borrowed.
Comment 2 Iván Atienza 2013-09-16 20:47:38 UTC
Created attachment 358820 [details]
libevdev-0.3.ebuild

Hi Stanisław, i have some curiosity about and make an ebuild, just rename to -9999 for the git version or better use my overlay in layman: layman -a vaca. I will demand you some footage of your results in the game driver work, if possible. :)

If no dev have interest in maintain the ebuild i guess i can proxy-maintain, so it can be added to portage tree.

Salud.
Comment 3 Stanisław Halik 2013-09-16 22:12:54 UTC
Created attachment 358834 [details]
libevdev ebuild by a first-timer

This is my ebuild. It turns out ioctl api is just as easy, just a bit of bit twiddling. It's not portable outside Linux anyway, so having this lib in the first place makes not as much sense as I thought... Sorry for the noise (?)
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-09 16:31:35 UTC
@x11, x11-drivers/xf86-input-evdev-9999 seems to need this nowadays. I guess you will want this then :).

checking for LIBEVDEV... no
configure: error: Package requirements (libevdev >= 0.4) were not met:

No package 'libevdev' found
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-10-13 23:12:41 UTC
+*libevdev-0.4 (13 Oct 2013)
+
+  13 Oct 2013; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+  +libevdev-0.4.ebuild, +metadata.xml:
+  New ebuild for bug #485114, thanks to Iván Atienza and Stanisław Halik.