From mint-bounce@lists.fishpool.fi Tue Jan 3 22:32:26 2006 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Message-ID: <43BAEC0B.7030006@home.se> Date: Tue, 03 Jan 2006 22:26:35 +0100 From: Peter Persson User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: mint@fishpool.com Subject: [MiNT] XDD implementation questions (joystick driver) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: pep.fishmoose@home.se Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=BAYES_00 X-Spam-Level: Howdy, I'm writing an basic joystick driver similar to the one in Linux. It already works for non-blocking accesses, it's event based, and it allows any number of axes & buttons. Currently, it only supports joysticks on the enhanced joystick ports on the falcon/ste. The current version is written in assembler, but I might rewrite it in C later on (I guess I should, right?). I haven't really done anything like this before, and I'm not sure how everything should be implemented. Please excuse my ignorance if the answers to my questions are obvious. 1. Can I use Xbios in an XDD? 2. I want to implement blocking reads. How is this supposed to work? If I just wait until I have a new joystick packet available to the calling process, I halt all other processes too. This is not the way to do it, right? 3. Select & Unselect - What the heck is this, and should I implement it? I also wonder if this is the kind of API people want, or if I should go for something else. best regards -- Peter Persson