Skip to content

michaelneu/threesixty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

threesixty

First of all, threesixty is based on some parts of jaraco.input, that's also, why threesixty is released under the MIT license. Nevertheless this library allows you to create XBOX 360 controller based user-interaction without worrying about how to interact with the controller itself. And it's really simple.

Installation

threesixty is currently Windows-only. You need to have xinput1_3.dll installed (which should be included in Windows 7/8 by default). Linux support is planned.

After cloning the repository, you can go ahead and install it via

python setup.py install

Basic usage

Using threesixty is indeed quite simple.

>>> import threesixty
>>> controllers = threesixty.controllers()
>>> len(controllers)
1
>>> controller = controllers[0]
>>> state = controller.get()
>>> state[threesixty.BATTERY_LEVEL] == threesixty.BATTERY_LEVEL_MEDIUM
True

The examples directory of the repository contains some simple examples which should explain, how threesixty works.

What threesixty isn't

  • A game engine

    • threesixty was meant to be used for any application, but not in order to replace a real game engine. It allows you to use a controller, but that's it
  • A perfect event handling system

    • It handles events, but doesn't use any library like zope.event. threesixty uses a multithreaded callback system to fire its events.

About

Simple wrapper for the XBOX 360 controller

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages