Class Nes

    • Method Detail

      • setupNesJoystick

        public static int setupNesJoystick​(int dPin,
                                           int cPin,
                                           int lPin)

        setupNesJoystick:

        Create a new NES joystick interface, program the pins, etc.

        Parameters:
        dPin - data pin
        cPin - clock pin
        lPin - pin number
        Returns:
        return joystick handle
      • readNesJoystick

        public static int readNesJoystick​(int joystick)

        readNesJoystick:

        Do a single scan of the NES Joystick.

        Parameters:
        joystick - joystick handle
        Returns:
        return value