tatteredpotato
Diamond Member
Code:
static unsigned int ps3remote_bits[] = {
[PS3R_BIT_ENTER] = 0x0b,
[PS3R_BIT_PS] = 0x43,
[PS3R_BIT_SQUARE] = 0x5f,
[PS3R_BIT_CROSS] = 0x5e,
[PS3R_BIT_CIRCLE] = 0x5d,
[PS3R_BIT_TRIANGLE] = 0x5c,
[PS3R_BIT_R1] = 0x5b,
[PS3R_BIT_L1] = 0x5a,
[PS3R_BIT_R2] = 0x59,
[PS3R_BIT_L2] = 0x58,
[PS3R_BIT_LEFT] = 0x57,
[PS3R_BIT_DOWN] = 0x56,
[PS3R_BIT_RIGHT] = 0x55,
[PS3R_BIT_UP] = 0x54,
[PS3R_BIT_START] = 0x53,
[PS3R_BIT_R3] = 0x52,
[PS3R_BIT_L3] = 0x51,
[PS3R_BIT_SELECT] = 0x50,
};
Now PS3R_BIT_* have already been defined (actually they're elements of an enum). About the only thing I can think of is if you're specifying the index of the value that you're initializing as you go along. I've done a fair amount of C programming but haven't encountered this syntax before.