#include <stdlib.h>Include dependency graph for wiiremote.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
| #define WRMT_MASK_BUTTON_A 0x0008 |
| #define WRMT_MASK_BUTTON_B 0x0004 |
| #define WRMT_MASK_BUTTON_DOWN 0x0400 |
| #define WRMT_MASK_BUTTON_HOME 0x0080 |
| #define WRMT_MASK_BUTTON_LEFT 0x0100 |
| #define WRMT_MASK_BUTTON_MINUS 0x0010 |
| #define WRMT_MASK_BUTTON_ONE 0x0002 |
| #define WRMT_MASK_BUTTON_PLUS 0x1000 |
| #define WRMT_MASK_BUTTON_RIGHT 0x0200 |
| #define WRMT_MASK_BUTTON_TWO 0x0001 |
| #define WRMT_MASK_BUTTON_UP 0x0800 |
| #define WRMT_MASK_LED_1 0x0001 |
| #define WRMT_MASK_LED_2 0x0002 |
| #define WRMT_MASK_LED_3 0x0004 |
| #define WRMT_MASK_LED_4 0x0008 |
| #define WRMT_MAX_DEVICES 32 |
| typedef struct wrmt_wiiremote WRMT_WiiRemote |
| enum WRMT_DataType |
Data Type ID.
| enum WRMT_FunctionType |
Function Type ID.
| enum WRMT_IOReturn |
| char* WRMT_GetError | ( | ) |
Get Error.
| int WRMT_GetNumWiiRemote | ( | ) |
Get number of Wii Remote devices.
| WRMT_WiiRemote* WRMT_GetWiiRemoteAt | ( | int | device_index | ) |
Get Wii Remote device at specified index.
| int WRMT_Init | ( | ) |
Initialize this library system.
It is necessary to call this function before the call of any other functions.
| WRMT_IOReturn WRMT_Poll | ( | int * | updated_device_index_pointer | ) |
Checks whether there is input data from the Wii Remote device.
The state is updated if there is data.
| void WRMT_Quit | ( | ) |
Quit library system.
| void WRMT_SetError | ( | const char * | message | ) |
Set Error.
| void WRMT_Sleep | ( | int | ms | ) |
Sleep.
| void WRMT_Update | ( | ) |
Update all opened Wii Remote devices.
| void WRMT_WiiRemote_Close | ( | WRMT_WiiRemote * | self | ) |
Close connection to Wii Remote.
| int WRMT_WiiRemote_GetState | ( | WRMT_WiiRemote * | self, | |
| WRMT_DataType | type | |||
| ) |
Get device state from WiiRemote.
| int WRMT_WiiRemote_IsEnabled | ( | WRMT_WiiRemote * | self, | |
| WRMT_FunctionType | type | |||
| ) |
Checks whether the specified function is enabled.
| int WRMT_WiiRemote_IsOpened | ( | WRMT_WiiRemote * | self | ) |
Checks whether the connection to Wii Remote has opened.
| WRMT_IOReturn WRMT_WiiRemote_Open | ( | WRMT_WiiRemote * | self | ) |
Open connection to Wii Remote.
| void WRMT_WiiRemote_SetEnabled | ( | WRMT_WiiRemote * | self, | |
| WRMT_FunctionType | type, | |||
| int | value | |||
| ) |
Enable or disable the specified function.
| void WRMT_WiiRemote_SetState | ( | WRMT_WiiRemote * | self, | |
| WRMT_DataType | type, | |||
| int | value | |||
| ) |
Sets the state of the Wii Remote device.
| int WRMT_WiiRemote_WriteDataToMemory | ( | WRMT_WiiRemote * | self, | |
| int | address, | |||
| const unsigned char * | data, | |||
| size_t | data_size | |||
| ) |
Writes data to the specified memory area.
1.5.1