Python library evde...
 
Notifications
Clear all

Python library evdev on Raspberry Pi to use a Gamepad in your DIY projects (servomotor, games, robotic...)


christophe
Posts: 251
Admin
Topic starter
(@chris)
Member
Joined: 4 years ago
wpf-cross-image

The Python evdev library makes it possible to decode the codes sent by the input devices (keyboard, mouse, analog joystick, gamepad ...) to exploit them in any project. We can for example use a gamepad in a game project or drive the servomotors of a robotic arm as the ROT2U 6DOF presented in this article.…

2 Replies
c880d3f56409a7cd2af28966e7d79ac0?s=80&d=mm&r=g
Posts: 1
 Armando Altieri
Guest
(@Armando Altieri)
Joined: 2 years ago

Hi. Great tutorial, it works fine.
But I have a question: I'm programming a game with raspberry, and I would use evdev. But if I start this "read_loop" to read the gamepad's events, I can't do other thing in the code. How may I read gamepad events and at same time run other lines of code? Thank you

Reply
318a6a2905194afc7aabc946d16578b7?s=80&d=mm&r=g
Posts: 1
 Oliver Hoffmann
Guest
(@Oliver Hoffmann)
Joined: 1 year ago

Hey there, same for me, I appreciate the tutorial with all explanations. Thanks for this.
Still I have the same question: How to integrate the evdev module within a code that is running and were the events of a gamepad are just needed in a certain situation? I appreciate the possibilities but just do not know how to integrate it within an already running code where it should just look at the values on specific times..
Thanks for the answer!!

Reply
Share:
Join Us!
Recent Posts
Last Articles
DIY Projects
DIY Projects