Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.55 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.55 KB

VirtualPad

Embedded virtual controller, inspired by RetroArch's RetroPad.

VirtualPad

  • Read only API for controller state.
  • Fast state copy, for double buffering.
  • Bit field button states, optimized for low RAM and fast copy.
  • ControllerParser to extract action events or digital values from an analog source
    • Button Up/Down
    • Joystick Up/Down/Left/Right
    • Axis Up/Down

WriteVirtualPad

  • Inherits from IVirtualPad
  • Write/Read API for controller state
  • Support functions to translate "analog" values (Joysticks and Sliders)

Supported Source Controllers

Task Based Features

Task features depend on Task Scheduler https://github.com/arkhipenko/TaskScheduler

  • ControllerMap: fixed period, template mapper from source to VirtualPad
  • ControllerDispatch: fixed period notifier for dispatch interface
  • ControllerToX360: fixed period mapper from IInputController to USB-XBox360 controller

Examples provided