liberis
Enumerations | Functions
pad.h File Reference

High-level access to pads. More...

#include <eris/types.h>

Go to the source code of this file.

Enumerations

enum  pad_type { PAD_TYPE_NONE = 0, PAD_TYPE_MOUSE = 13, PAD_TYPE_MULTITAP = 14, PAD_TYPE_FXPAD = 15 }

Functions

void eris_pad_init (int pad)
 Initialize a pad.
u32 eris_pad_read (int pad)
 Read the pad data.
pad_type eris_pad_type (int pad)
 Get the pad type.
int eris_pad_connected (int pad)
 Check if a pad is connected.

Detailed Description

High-level access to pads.


Function Documentation

int eris_pad_connected ( int  pad)

Check if a pad is connected.

Parameters:
padThe pad to check. (0 ~ 1)
Returns:
1 if there is a pad, 0 if not.
void eris_pad_init ( int  pad)

Initialize a pad.

Parameters:
padThe pad to initialize. (0 ~ 1)
u32 eris_pad_read ( int  pad)

Read the pad data.

Parameters:
padThe pad to read. (0 ~ 1)
Returns:
The current state of the pad.
pad_type eris_pad_type ( int  pad)

Get the pad type.

Parameters:
padThe pad to read. (0 ~ 1)
Returns:
The pad's type.
 All Files Functions Typedefs Enumerations Enumerator Defines