Classes | |
struct | _tagAnalogButton |
Structure used to hold button status. More... | |
struct | _tagPadReadDataType |
Used to easy reading into array of byte read from the pad. More... | |
class | JoypadManager |
This class is a Pad manager, helping the user to access pad ioctl function and reading data. More... | |
struct | TextureFileHeader |
Structure placed at the header of texture file. More... | |
class | TextureManager |
Class used to manage texture on PS2. More... | |
Typedefs | |
typedef NablaPS2Utils::_tagAnalogButton | AnalogButton |
Structure used to hold button status. | |
typedef NablaPS2Utils::_tagPadReadDataType | PadDataType |
Used to easy reading into array of byte read from the pad. | |
Functions | |
int | GetPixelSizeInBytes (PSM_t Format) |
Variables | |
const char *const | JoyDev [] = {JOYPAD_DEV0, JOYPAD_DEV1} |
NablaPS2Utils::TextureFileHeader | packed |
Structure placed at the header of texture file. |
|
Remember that some button can be analog so a pressure value can be associated to them, other button can only have 0 or 1 value. Pressure is normalized in range [-1, 1]. |
|
Pay particular attenction because DButtons is two byte data and the structure is constructed with bitset, since PS2 is little endian, byte 1 and 2 are swapped so be sure to swap button index in JoypadConst.h |
|
Remember to add the packed attribute, if not the structure cannot be read from file with a single fread call. |