On Mon, Nov 13, 2000 at 01:06:52PM +0100, David Olofson wrote:
> Mon, 13 Nov 2000 Sundeep Kapila wrote:
> > Hello,
> >      I want to read input from a joystick (attached on a game port)
> >      as a real-time periodic process. Can someone give me pointers how
> >      and where to start ?
> 
> linux/drivers/char/joystick
> 
> NOTE: Standard PC joystick interfaces suck, as they require busy waiting for
> accurate reading. If you want a solution that allows you to read the stick
> without wasting cycles, look for something that uses a different interface, or
> some sound card (or possibly main board) with a joystick interface with *real*
> ADCs; not CPU driven capacitor discharge measurement style crap.
I am not aware of these issues involved in getting  input from game
ports. could u give me a reference where i can get more details.
i have a sound card with a game port to which the joystick is
attached. this game port would not have different irq as that of the
sound card. how can i selectively make reading from this port as a
real-time process. can things like inb/outb used to read data from these
registers periodically in a real-time thread on rtlinux kernel ?
> 
> >      I also want to read input from the keyboard as real-time.
> >      can this be done ?
> 
> linux/drivers/char/pc_keyb.h
> linux/drivers/char/pc_keyb.c
> 
> It's probably a good idea to hack the driver in a way that allows "standard
> Linux" to use the keyboard as well, when your RT application isn't using it.
> But you could remote control your system over a network, of course - you
> wouldn't need the local keyboard in that case.
> 
> 
> //David
> 
> ..- M u C o S -------------------------. .- David Olofson --------.
> |         A Free/Open Source          | |      Audio Hacker      |
> |   Plugin and Integration Standard   | |     Linux Advocate     |
> |                 for                 | |  Open Source Advocate  |
> |      Professional and Consumer      | |         Singer         |
> |             Multimedia              | |       Songwriter       |
> `-----> http://www.linuxdj.com/mucos -' `---> [EMAIL PROTECTED] -'

-- 
        In a universe of ambiguity, This kind of certainty comes only once,
        and never again, no matter how many life times you live.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to