Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: shoggoth on April 16, 2008, 10:03:23 AM

Title: AmigaOS & joysticks (gameport.device?)
Post by: shoggoth on April 16, 2008, 10:03:23 AM
Howdy,

Not being too familiar with the fundamentals of AmigaOS, I need to know the basics of the joystick API for this system. How does it work? I've read somewhere about a gameport.device. Is this concept somewhat similar to /dev/jsX (linux) or /dev/joystick (BSD)?

The reason I ask is that A - I'm writing device drivers for another OS and might need inspiration, and B - I'm writing an article about joystick APIs on different platforms.

Help, someone? Thanks!
Title: Re: AmigaOS & joysticks (gameport.device?)
Post by: rzookol on April 16, 2008, 01:58:24 PM
http://tbs-software.com/guide/index.php?guide=autodocs.doc/lowlevel.doc&node=0
Title: Re: AmigaOS & joysticks (gameport.device?)
Post by: shoggoth on April 16, 2008, 02:27:47 PM
Quote

rzookol wrote:
http://tbs-software.com/guide/index.php?guide=autodocs.doc/lowlevel.doc&node=0


Thanks! Can this be considered "standard", or are there other APIs that I should be aware of? I take it the lowlevel.library/ReadJoyPort is based on polling (as in not event based). Are there other abstraction layers on top?