Function ReadJoypadExt

From Uzebox Wiki
Jump to navigation Jump to search
Prototype

unsigned int ReadJoypadExt(unsigned char joypadNo);

Description

Read the extended joypad data. This is only valid for a SNES mouse and will include the mouse X/Y movement deltas.

Parameters
  • joypadNo
    • Player 1 Controller: 0
    • Player 2 Controller: 1
Returns

Current extended joypad information

Video Modes

All

Since

V3

Example:

 int buttons = ReadJoypadExt(0); // get the extended button state for controller 1 (logical 0)

Additional information can be found in this article: Controller Event Handling.