CPCWiki forum

General Category => Demos => Topic started by: Curlypaul on 22:25, 09 June 22

Title: Working analog stick demo
Post by: Curlypaul on 22:25, 09 June 22


I recently felt the urge to rewire a PC/Apple ananlog stick to work with my GX4000

https://www.cpcwiki.eu/forum/hardware-related/analogue-stick-conversion/ (https://www.cpcwiki.eu/forum/hardware-related/analogue-stick-conversion/)

Was a relatively easy affair, I'd document what wires went where, but they really did look like they'd used whatever random colours they had lying around, so your's might be different anyway so best to read the wiki (https://www.cpcwiki.eu/index.php/Connector:Analogue_joystick_(CPC_Plus_only)) and draw a diagram.

Full source is available, mainly pasted together from code I found at The Unofficial Amstrad WWW Resource (http://www.cpctech.org.uk/)

https://github.com/CurlyPaul/cpc-plus-analog-poc/ (https://github.com/CurlyPaul/cpc-plus-analog-poc/)

I was starting to think of ways to add momentum, but the natural springyness of the joystick added it anway. It's a bit jitery, which may be dirty pots, but the movement is surprisingly smooth and precise, would be good for a shooter

Title: Re: Working analog stick demo
Post by: GUNHED on 11:57, 10 June 22
I don't know if this is of much help: By myself I had one working analogue stick for the 6128plus back the day, so I found out how it works. Later on I converted some stick to work with the Plus / GX range. As test I always used the Plus version of FutureOS, because the analogue joystick here drives the mouse arrow.

An example is shown in the first 9 seconds of this video:
https://www.youtube.com/watch?v=-U4ICAuXjqY
Title: Re: Working analog stick demo
Post by: Curlypaul on 23:25, 10 June 22
Yeah I've heard Future can use it, I guess it would be a good test if thr jitter is normal and needs to be smoothed out in code.

I'm not sure how much further I'm going to take this, I wasn't planning on it, but I'm tempted to make a Rick and Morty themed shooter as a way to keep learning what the plus can do. 

Seems the gx is the flavour of the month lately as well, lots of homebrew
Powered by SMFPacks Menu Editor Mod