Determines if the zapper trigger is pressed and/or if it's sensing light based on the button config and return the result as a two bit value.
| 484 | // Determines if the zapper trigger is pressed and/or if it's sensing light based on the button config and return |
| 485 | // the result as a two bit value. |
| 486 | static uint32 UpdateLCDCompatibleZapperData(int w) |
| 487 | { |
| 488 | uint32 r = 0; |
| 489 | ButtConfig* lcdcompzappertsc = lcdcompzappersc[w]; |
| 490 | int x; |
| 491 | |
| 492 | for (x = 0; x < 2; x++) |
| 493 | if (DTestButton(&lcdcompzappertsc[x])) r |= 1 << x; |
| 494 | |
| 495 | return r; |
| 496 | } |
| 497 | |
| 498 | static uint8 fkbkeys[0x48]; |
| 499 | static uint8 suborkbkeys[0x65]; |
no test coverage detected