A pure-python linux joystick api module using select to make blocking/non-blocking reading
cptx032 / pjla Goto Github PK
View Code? Open in Web Editor NEWA pure-python linux joystick api module
License: MIT License
A pure-python linux joystick api module
License: MIT License
Create static_method functions in Joystick class implementing the IOCTLs operations (in 4 session of docs/joystick-api.txt)
Today we can bind a function to a press/release event, but would be nice bind a function to hold of a button, pressing it many seconds, like holding the right arrow key to make a character run/walk to right
Today we have some variables in joystick.py starting with KM_ML. KM = keymap, ML = multilaser. This is the only joystick that I have now, so would be nice have have more variables from many other devices
We have today an bind called Joystick.ANY
that is runned in any event. The problem is that in initial connection is sent many fake events (or virtual events like docs saids). These events have the states of buttons. The any bind will capture these events...but would be nice not capture if you wish. So, a suggestion is split the any event in two events: Joystick.ANY
that capture any events (including fake events) and Joystick.ANY_REAL
for only "real" events. Other choice is create ANY
to only real events and ANY_WITH_FAKES
for include fakes. Choose whats your think is best.
Create a folder called examples
and add many examples you can. Suggestions:
Today we have only button press/release, but have not any bind to the arrow keys (the arrow keys are treated different in joystick api, is like it was not buttons...because the joystick is emulated in buttons...)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.