SNES controllers

SNES controllers

Post by John McCutcha » Tue, 14 Aug 2001 03:40:08



Hello,                                                                          

Under Documentation/joysticj-parport.txt there is a description of              
how to build an adapter for attaching SNES/NES control pads to                  
the parallel port. It says to use diodes. I am wondering what                  
kind of diodes should I use? aswell is it safe to bridge                        
pin's 4 - 9 together with diodes to get more power?                            

John
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

SNES controllers

Post by Edgar Toerni » Tue, 14 Aug 2001 07:40:05



> Under Documentation/joysticj-parport.txt there is a description of
> how to build an adapter for attaching SNES/NES control pads to
> the parallel port. It says to use diodes. I am wondering what
> kind of diodes should I use?

1N4148

Quote:> aswell is it safe to bridge pin's 4 - 9 together with diodes to get
> more power?

Yes.

Ciao, ET.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. gamecon.c change for SNES controller

Pavlik -

I've had to applie the following change to make the SNES controller work
at the parallel port. It have been applied to two computers. The old
code was giving the same values when you pressed right or left or when
you pressed up or down. The new code have been done to not use expensive
codification (i.e. multiplication).

It have been applied to kernel 2.4.6, and compiled with gcc 3.0.

See ya,

Eng. Eduardo Bortoluzzi Junior

--- start of patch ---

--- drivers/char/joystick/gamecon.c.orig Sat Jul 14 19:03:12 2001

                        s = gc_status_bit[i];

                        if (s & (gc->pads[GC_NES] | gc->pads[GC_SNES])) {
-                               input_report_abs(dev + i, ABS_X, ! - !(s
& data[6]) - !(s & data[7]));
-                               input_report_abs(dev + i, ABS_Y, ! - !(s
& data[4]) - !(s & data[5]));
+                               input_report_abs(dev + i, ABS_X, - !!(s
& data[6]) + !!(s & data[7]));
+                               input_report_abs(dev + i, ABS_Y, - !!(s
& data[4]) + !!(s & data[5]));
                        }

                        if (s & gc->pads[GC_NES])

--- end of patch ---

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. IP Filting

3. gamecon.c: Fix for SNES controllers

4. 550C drivers for 660C ?

5. snes pad as pointing device

6. problem to run cgi in the host.

7. joystick 1.2.12 & SNES pad

8. need an access to IBM RS6000

9. SNES games?

10. Promise Controller or megaraid ata100 controller raid 0

11. One SCSI controller is not recognized with another SCSI controller

12. Fix for promise RAID controllers not working as IDE controllers in 2.4.19

13. IDE controller cards with >= 4 *independent* controllers?