Skip to content

XInput (XBOX 360 compatible controller) library for Go on Windows.

License

Notifications You must be signed in to change notification settings

tajtiattila/xinput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

xinput

XInput (XBOX 360 compatible controller) library for Go on Windows.

Requirements

  • Windows 8.1: xinput1_4.dll
  • Windows 7: xinput1_3.dll
  • Windows Vista: xinput9_1_0.dll

Tested on Windows 7 x64.

Installation

go get github.com/tajtiattila/xinput

Usage

Only three functions are available.

Load loads xinput.dll. Not strictly necessary, but useful for checking whether xinput is actually available.

GetState retrieves the state thumbsticks, d-pad, buttons and triggers.

SetState sets vibration state.

About

XInput (XBOX 360 compatible controller) library for Go on Windows.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages