|
From: Alexander R. <ale...@us...> - 2002-03-04 04:45:09
|
Hi, On Sunday 03 March 2002 23:47, you wrote: > > > > I mean this seems like the most basic possible...can I just fopen > > (/dev/jsX) and write some stuff tehre for forces...can you tell me how to > > do this? or is the timing important and are otehr things important...... > > low level is ok since right now all I need is 1 function: > > > > void ApplyForce (x,y,z); > > that's both direction and magnitude.... > > is that difficult to implement in low level...? > > No, it's only one ioctl. Have a look at the utility called ffmvforce > (available on my homepage or at linuxconsole.sourceforge.net). > > The API is described in Documentation/input/ff.txt in the patched linux > sources. > Briefly: > 1. You create/update effects using ioctls on /dev/input/eventX > 2. You play/stop effects by writing into /dev/input/eventX > 3. You query device features by... guess what ? ioctls on /dev/input/eventX > (4. /dev/input/eventX is handled by the module called evdev.o) > > /dev/input/jsX isn't actually necessary. But you can use it too if you > want. I've read it and I think I understand how it is done. Alex -- Alexander Rawass Email: ale...@us... http://tuxfleet.sourceforge.net http://qtreemap.sourceforge.net ...but some day you'll be a STAR in somebody else's SKY... |