An API to interface with your Oculus Touch controllers.
Reason this release was yanked:
Unstable
Project description
py_oculus_touch
What is it?
This is a python library that allows you to interface with your Oculus Touch controllers and headset. It is a wrapper for the auto_oculus_touch project.
With it, you can read the current state of the controllers and headset, send button presses to the controller, or move the thumbsticks.
Installation
pip install py_oculus_touch
API Reference (Under Construction)
Example Usage
Below is a short program that will vibrate both controllers for 1 second whenever the X button is pressed while the headset is being worn.
from py_oculus_touch import OculusTouch, OculusTouchButtonEnum
# Initialize the OculusTouch object
oculus = OculusTouch()
while True:
isWearing = oculus.Wearing()
isXButtonDown = oculus.IsDown(OculusTouchButtonEnum.X)
if isWearing and isXButtonDown:
oculus.Vibrate(0, 1, 128, 1)
oculus.Vibrate(1, 1, 128, 1)
oculus.PollAndSleep()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_oculus_touch-0.0.2.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for py_oculus_touch-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc3ab4c34d9acd34e39e1d13bed57177abce0d478d84d0ad553f3eaa9625be83 |
|
MD5 | 4350cd00e58b9ec0fb3328a6793a56a6 |
|
BLAKE2b-256 | 9dd5e04ce7a6978c2f71ad24d3fe02fcfeb84c6ada1bf40a4cf938bd46aa19d1 |