Skip to content

Instantly share code, notes, and snippets.

View dcoles's full-sized avatar

David Coles dcoles

View GitHub Profile
@dcoles
dcoles / xinput.py
Created December 26, 2012 07:15 — forked from anonymous/xinput.py
# Simple Wrapper around XInput API
#
# Author: David Coles <[email protected]>
import ctypes
from ctypes.wintypes import BYTE, WORD, SHORT, DWORD
class XInputGamepad(ctypes.Structure):
_fields_ = [