atarilux Posted June 12, 2022 Share Posted June 12, 2022 (edited) Hello, I have decided to start using CC65 so that atleast later on the basic game logic components can be easily ported to other platforms. However, I wondered if anyone can point me in the direction of examples of how to get the joystick working? I have been trying joystick.h and joy_read with little success. For some reason this got posted twice, so please ignore this thread and reply to the other one. Sorry for the confusion. Edited June 12, 2022 by atarilux duplicate Quote Link to comment Share on other sites More sharing options...
damosan Posted June 29, 2022 Share Posted June 29, 2022 #include <atari.h> ... direction = OS.stick0; Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted June 29, 2022 Share Posted June 29, 2022 I think he want's to use this cross platform @atarilux your question has been answered in your original thread, look at posts 11 and 12 in the thread, you need to add the JOYSTICK_DRIVER to your compile line as shown by @sanny I did just that and the code required to read the joysticks is shown in my comments Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.