DirectInput for X/other platforms?

Hiya,

I was wondering what it would take for a directinput type
facility on platforms based on X. Basically I want to read
the state of the device without forcing all the events to
pass through the event pump.

Up until recently I have been happy with SDL_PollEvent and
other style things but I now want to program all sorts of
other wierd and wonderful input devices.

Has anyone got any tips on how to go about it ? ie will I
have to go write an X extension or some other massive task
or is it possible to do it some other way ?

To get an idea of what I am looking for goto this web page
and look at openIL -
http://people.we.mediaone.net/seanpalmer/openlib.html

Cheers,

Pete*--------------------------------------------------*
| Latrobe University, | |
| Bundoora, Australia | Does the name ‘Pavlov’ |
| Office: PW220 | ring a bell ? |
| Ex: 2503 | |
--------------------------------------------------