[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?
- To: "pygame-users@xxxxxxxx" <pygame-users@xxxxxxxx>
- Subject: Re: [pygame] How to do some action while a joystick is in motion?
- From: Ian Mallett <ian@xxxxxxxxxxxxxx>
- Date: Tue, 18 Sep 2018 17:48:36 -0600
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 18 Sep 2018 19:48:54 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=WhatgK7EQSqOM0fjivvGG62IP3GT+aj4zv47XwKySaA=; b=caQgrRb8Yi94j2afEUXqxrw2wYMZodAkPvAOzAnRFe4WEOqNOdxfpThQAgYucuwWww O6B6bKDokO14shyYIt6ToRdWT78/k+nnJk/bTxSV0AnSbJPKNFf6ENMTRnYtS3/am8kE 4FHom2TB9sla6wWBO2SfnFcianXnAuQyriON3OK4JaTVXmYYYP0QqOL9C189YyXuPicG C0GUj50lJSHWY2B9zCfDuKAUb5Fc+U8s1OF78nNVGItamcxKBx6d/mceN7Ah/BaZ6BKN NLpOC7jz5rWN499ZXuQawyT8r7Uf6M9xA26ayvBzqO6LyzGlSPx3jmjwfcqnHCzN9ULe hrnA==
- In-reply-to: <20180918225520.66329bdc@ghostwheel>
- References: <CACB9+z358=ycjk9yGqhGmEobnqzb-scWfJ0=_G7z-=sdSm5j7w@mail.gmail.com> <20180918225520.66329bdc@ghostwheel>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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.)