7800-devtools / 7800basic

a BASIC-like language for creating games that run on the Atari 7800 console.
Other
23 stars 3 forks source link

Controller Issues in v.0.18. #10

Closed PJM-NCC-70511 closed 2 years ago

PJM-NCC-70511 commented 2 years ago

When a game was compiled with v.0.18 and a trackball is plugged in and moved. It is trigger reset, pause, and other weird stuff to be happening. Even for programs that do not use the trackball. Does this both on real hardware and in the a7800 emulator.

Also for the driving controller, I am not sure if it is trying to read the 2600 driving controller or some other device. But I did not get it to work does not matter what I do.

msaarna commented 2 years ago

The trackball creates directions that are normally impossible with a joystick game, so using trackballs without a game that supports trackballs isn't supported. The contradictory directions produced by a trackball are also used to implement soft-pause/soft-reset controller functionality in 7800basic games. When your game is compiled with trackball support, this soft-switch capability isn't compiled into your game.

See the rotationalcontrols sample for an example on how to support those.