| inline u8 LightGun_Read( |
| ) |
Read light gun data from the given port.
| port u8 | Input port to read (INPUT_PORT1 or INPUT_PORT2) |
Light gun state (use GetTrigger and GetLight functions to get state information).
| inline bool LightGun_ASCII_GetTrigger( |
| ) |
Get the trigger status of the ASCII light gun.
| state u8 | Current state of the light gun (from LightGun_Read) |
FALSE if the trigger is not pressed.
| inline u8 LightGun_ASCII_GetLight( |
| ) |
Get the light status of the ASCII light gun.
| state u8 | Current state of the light gun (from LightGun_Read) |
FALSE if the gun don't detect light (not pointing to white image on screen).
| inline bool LightGun_GunStick_GetTrigger( |
| ) |
Get the trigger status of the MHT Ingenieros Gun-Stick light gun.
| state u8 | Current state of the light gun (from LightGun_Read) |
FALSE if the trigger is not pressed.
| inline u8 LightGun_GunStick_GetLight( |
| ) |
Get the light status of the MHT Ingenieros Gun-Stick light gun. Parameters: state - Current state of the light gun (from LightGun_Read)
FALSE if the gun don't detect light (not pointing to white image on screen).
| inline bool LightGun_Phenix_GetTriggerA( |
| ) |
Get the trigger A status of the Phenix light gun.
| state u8 | Current state of the light gun (from LightGun_Read) |
FALSE if the trigger A is not pressed.
| inline bool LightGun_Phenix_GetTriggerB( |
| ) |
Get the trigger B status of the Phenix light gun.
| state u8 | Current state of the light gun (from LightGun_Read) |
FALSE if the trigger B is not pressed.
| inline u8 LightGun_Phenix_GetLight( |
| ) |
Get the light status of the Phenix light gun.
| state u8 | Current state of the light gun (from LightGun_Read) |
Detected 3-bit RGB color
0b000: Black (no light detected)
0b001: Blue
0b010: Green
0b011: Cyan
0b100: Red
0b101: Magenta
0b110: Yellow
0b111: White (light detected)