Skip to content

Abstracted controller, inspired by RetroArch's RetroPad.

License

Notifications You must be signed in to change notification settings

GitMoDu/VirtualPad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Abstracted controller, inspired by RetroArch's RetroPad.

Topics

Resources

License

Stars

Watchers

Forks