MCPcopy Create free account
hub / github.com/360Controller/360Controller / ChatPad2USB

Function ChatPad2USB

360Controller/chatpadkeys.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43unsigned char ChatPad2USB(unsigned char input)
44{
45 unsigned char row = input & 0x0F;
46 unsigned char column = (input & 0xF0) >> 4;
47
48 if (row >= ROW_SIZE)
49 return 0x00;
50 if (column >= (sizeof(columns) / sizeof(columns[0])))
51 return 0x00;
52 return columns[column].row[row];
53}

Callers 1

handleReportMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected