Search found 123 matches

by Mixail
Fri Nov 19, 2010 1:33 pm
Forum: Controls
Topic: 6 button
Replies: 51
Views: 26246

To me to use this ASM code? | get current pad value | entry: a0 = pad control port | exit: d2 = pad value (0 0 0 1 M X Y Z S A C B R L D U) or (0 0 0 0 0 0 0 0 S A C B R L D U) get_pad: bsr.b get_input /* - 0 s a 0 0 d u - 1 c b r l d u */ move.w d0,d1 andi.w #0x0C00,d0 bne.b no_pad bsr.b get_input ...
by Mixail
Fri Nov 19, 2010 12:20 pm
Forum: Controls
Topic: 6 button
Replies: 51
Views: 26246

Chilly Willy wrote:I'm sure there is a thread around here that shows how to read 6-button pads as well as mice. It's just not part of Stef's mini-devkit... yet.
Where it can be seen?
by Mixail
Thu Nov 18, 2010 4:51 pm
Forum: Controls
Topic: 6 button
Replies: 51
Views: 26246

6 button

How to include 6 button joy stick? (X, Y, Z) #include <genesis.h> #include <joy.h> volatile u16 joy; int main() { JOY_setSupport(0, JOY_SUPPORT_6BTN); JOY_setSupport(1, JOY_SUPPORT_6BTN); VDP_drawText(APLAN, "----------------------------------------", 0, 0, 25); while (1) {joy = JOY_readJoypad(JOY_1...