SaturnRingLibrary 0.6
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::Input Namespace Reference

Detailed Description

Input handling.

Classes

struct  Analog
 Generic analog peripheral. More...
 
struct  Digital
 Generic digital peripheral. More...
 
struct  Gun
 Light gun peripheral. More...
 
class  Management
 Peripheral management. More...
 
struct  PeripheralGeneric
 Generic peripheral base. More...
 
struct  Pointer
 Generic pointing (mouse) peripheral. More...
 

Enumerations

enum class  PeripheralFamily : uint8_t {
  Digital = 0x00 , Analog = 0x10 , Pointing = 0x20 , KeyBoard = 0x30 ,
  Extended = 0xe0 , Unknown = 0xf0
}
 Peripheral type family. More...
 
enum class  PeripheralType : uint8_t {
  Gamepad = 0x02 , Racing = 0x13 , AnalogPad = 0x15 , Analog3dPad = 0x16 ,
  Mouse = 0x23 , Gun = 0x25 , Keyboard = 0x34 , MD3ButtonPad = 0xe1 ,
  MD6ButtonPad = 0xe2 , ShuttleMouse = 0xe3 , MDGun = (MEGA_ID_StnShooting | 0xf0) , NotConnected = 0xff
}
 Peripheral type. More...
 

Enumeration Type Documentation

◆ PeripheralFamily

enum class SRL::Input::PeripheralFamily : uint8_t
strong

Peripheral type family.

Enumerator
Digital 

Digital controllers (control pad, fighting stick, etc...)

Analog 

Analog controllers (3d pad, racing wheel, train controller, etc...)

Pointing 

Pointer controllers (Saturn mouse, Gun)

KeyBoard 

Keyboard controllers (NetLink keyboard)

Extended 

Extended/Megadrive controllers (shuttle mouse, MD gamepad)

Unknown 

Controller not connected, Unknown type.

◆ PeripheralType

enum class SRL::Input::PeripheralType : uint8_t
strong

Peripheral type.

Enumerator
Gamepad 

Generic gamepad.

Racing 

Racing wheel.

AnalogPad 

Mission stick.

Analog3dPad 

3D analog pad

Mouse 

NetLink/XBand mouse.

Gun 

Light gun.

Keyboard 

NetLink/XBand keyboard.

MD3ButtonPad 

3 button Megadrive controller

MD6ButtonPad 

6 button Megadrive controller

ShuttleMouse 

Shuttle mouse.

MDGun 

Megadrive light gun.

NotConnected 

Controller not connected.