Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Docu markdown

  • Loading branch information...
commit f88bec30ff6b9746ade8ffc9ac12b62f91d3a2e6 1 parent 9405ab5
@mrwonko authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 doc.markdown
View
6 doc.markdown
@@ -34,11 +34,7 @@ When you query controller data using GetData(), GetAllData(), GetNewestData() or
* *joystick_x* - The analogue stick's horizontal position, with -1 being left, 0 the center and 1 right
* *joystick_y* - The analogue stick's vertical position, with -1 being down, 0 the center and 1 up
* *trigger* - The position of the analogue trigger, with 0 being unpressed and 1 fully pressed
-* *buttons* - Bitflags containing the state of each button, do a bitwise and with the corresponding button mask to retrieve the state:
-```Python
-if data.buttons & PySixense.Constants.Button1:
- print("Button 1 pressed!")
-```
+* *buttons* - Bitflags containing the state of each button, do a bitwise **and** with the corresponding button mask to retrieve the state.
There are the following button constants:
- PySixense.Constants.Button1
- PySixense.Constants.Button2
Please sign in to comment.
Something went wrong with that request. Please try again.