[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] How to do some action while a joystick is in motion?



Perhaps have your "start" and "stop" commands affect the presence/absence of an acceleration for the camera. This way, the camera will smoothly accelerate up to a top speed, and decelerate back down from it smoothly when control is released. (Obviously "speed" can mean "angular speed" as well as translational.)