|
Post by Roman on Jul 22, 2004 1:56:44 GMT -5
1) The interrogation of joypads through function joypad() on the emulator Gens and on a real cartridge gives different results (on a real cartridge there is a bad operation of buttons of joypads). 2) Besides the function joypad(1) on the emulator Gens gives loop forever of the program. It can be necessary something previously to establish?
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Jul 25, 2004 23:13:31 GMT -5
the joypad routine got messed up when i tried to add 6 button support. its an error in the routines, so i'll try to get this bug fixed soon in the next release
|
|
|
Post by Roman on Jul 26, 2004 2:02:13 GMT -5
1) About the different indications of joypad in the emulator Gens and real cartridge. Similar, that the real console does not see function waitpadup. Someone else can it check up on the real console?
2) About joypad (1). It is my mistake, in the emulator Gens all works. At my program was joypad (1), but waitpadup (0) :=(
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Jul 26, 2004 2:55:51 GMT -5
1) About the different indications of joypad in the emulator Gens and real cartridge. Similar, that the real console does not see function waitpadup. Someone else can it check up on the real console? 2) About joypad (1). It is my mistake, in the emulator Gens all works. At my program was joypad (1), but waitpadup (0) :=( 1) there was a problem with waitpadup, i thought i fixed that, i'll have to check again 2) oops ;D!
|
|
|
Post by Tom Maneiro on Jul 29, 2004 18:02:19 GMT -5
hmmm... So these routines has bugs.... and i told to Steve Snake that the bug was in Fusion.... ;D
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Aug 6, 2004 0:18:53 GMT -5
i've read somewhere that to read a 6 button joypad properly, you would need to delay between reads so that the registers inside the joypad reset so you could read the buttons over again. Usually the joypad is read during vblank, which is plenty enough of time to delay the controller. But one note, the code i wrote was very sloppy and experimental, i could redo the routines even better to accurately read the joypad. Or maybe i could just make a seperate command for 3-button and 6-button joypads
|
|
|
Post by Roman on Aug 9, 2004 23:23:33 GMT -5
Thanks, really, the problems with a joypad(1) were because of a direct control. When I have entered interruptions vblank all it became normal. Conclusions. 1) In Help of BasiEGA it is necessary to specify about necessity of interrogation of a chair on interruptions. 2) Probably it is necessary to enter interruptions directly into function joypad (). 3) The Emulators (Gens, Fusion) not completely emulates work of a joypad without interruptions.
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Aug 11, 2004 13:18:20 GMT -5
interrupters cannot be triggered with the push of the joypad. The vblank interrupt would need to poll the joypad every time to check if a button has been pushed
|
|