English Amiga Board

Go Back   English Amiga Board > Support > support.WinUAE

Thread Tools
Old 31 December 2016, 00:28   #1
Registered User
rsn8887's Avatar
Join Date: Oct 2006
Location: USA
Posts: 781
CD32 buttons how do they work?

I am trying to implement CD32 support in UAE4All for the Vita. Is there any documentation or a quick explanation someone could give me how the CD32 buttons work? Are they registered as keys?

I see that UAE, at least the version used in UAE4All, has an array of keyboard inputs with various hex-keycodes, and then a few array bits to register joystick 1 and 2 directions and 2 buttons each. How would the cd32 buttons be recognized? Maybe some extra key codes??

EDIT: Ah I see this might be futile. It looks like it would require going in and setting the actual signals on the data lines on the port. WinUAE has 10,000 additional lines of code for all this input including cd32, third mousebutton, etc. whereas UAE4All just sets a few bits in an array representing joystick directions and buttons and that is it. I hoped I could just add a few entries to the array for the additional buttons and add a few lines of code to the UAE part to emulate cd32 buttons and the third mouse button.

Last edited by rsn8887; 31 December 2016 at 00:37.
rsn8887 is offline  
AdSense AdSense  
Old 31 December 2016, 08:37   #2
Toni Wilen
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 21,503
CD32 pad is relatively simple, complexity comes from accurate handling (that most games don't need)

Check 4 following routines for main logic:

cap_check() (only cd32 related part, the rest is for analog sticks/paddles)

If button 3 is high and output: cd32 is in pad mode, button 1 and 2 is used to transfer binary stream (clock and data). Button 3 not active: button lines 1 and 2 work as normal 2 button joystick.
Toni Wilen is offline  
AdSense AdSense  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
joystick buttons remap don't work jotd support.WinUAE 9 06 March 2016 20:26
Only 2 Buttons and D-Pad Work on CD32 Joypad fondpondforever support.Hardware 7 30 January 2015 13:33
WinUAE: 1 key = All 4 CD32 Buttons JemyM support.WinUAE 2 03 March 2012 10:55
Cannot configurate cd32 coloured buttons danny-666 support.WinUAE 2 15 June 2011 02:32
A500 shift buttons don't seem to work memothejanitor support.Hardware 5 24 June 2007 16:38

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 00:45.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.05469 seconds with 12 queries