Re: [cc65-devel] Keyboard and joystick reading problem
cc65 - a freeware C compiler for 6502 based systems
Brought to you by:
gpz
|
From: Janne P. <jan...@su...> - 2016-06-17 12:07:31
|
17.6.2016, 2.38, gr...@gm... wrote: > On Friday 17 June 2016, 01:30:14 Marc 'BlackJack' Rintsch > <ma...@ri...> wrote: >> >> Although the conflict of at least one joystick port with the >> keyboard might be normal (as on a C64), there seems to be something >> wrong with the driver for the plus4. The following program shows >> odd behaviour on VICE's xplus4: > [snip] > > better confirm it on a real plus4 - i wouldnt trust xplus4 for > anything, its really very broken (and its almost completely untested > too). I did some testing with a real hardware and I can confirm Marc's findings: > It shows two joysticks but both react simultaneously with a joystick > in port #1 for the directions and not at all with a joystick in port > #2. Button presses on a joystick aren't recognized at all in both > ports. kbhit() also reacts to joystick movement which shouldn't happen in my opinion. Pressing repeatable (and fast) one of these keys appear as joystick movement: Z, A, W, R, Y, I, P, £, *, control, D, G, J, L, return, B, M, dot, esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, home, and del. In other words, nearly all key presses are detected as joystick movement. -- Janne Peräaho |