[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Waking Up a Pygame App
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Waking Up a Pygame App
- From: Doug Petkanics <petkanics@xxxxxxxxx>
- Date: Thu, 16 Apr 2009 12:01:58 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 16 Apr 2009 12:02:06 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=/lz3LTljqxAwajLazHHVbzj3FZqjosOX/w1/2s/sIOg=; b=fUeHqwYtVnp++hzm5S5vjaOuNOkCDa1c5CzyDwikTOVsfTRYZDk76UkKSfD8zMurn8 Xdb38CYk7ttGTbQ+hkMnj4jegYRaCuFF3G/OPI+SxQnYatEoiU5iT1WqXIffua11dF6a QnDYDnm21F2WciazGvr1gUXSnN5uAy0TQtwrQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=Eo7I5iFlVd9uiC+nz24n+ONXQco3nWNBguCy5nIgQb3j8XsKwSf/5HwIq8s1m3P2O5 AkFhkkeg3JiZWzIua3skkXCpzL1Wy/+2PSaKxPCHtFwzDpjtJepjXIiW4GlN40HjBlmu vWFidL+noEexNdsLh7cYGlm9YWuEX1mZd073c=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
After my pygame application has been sitting idle for a few minutes,
the first mouse click (or touch when using a touchscreen), doesn't
get handled by the application. Instead it seems to wake the
application up, and then another click or touch is necessary. So when
I have a button, I need to click on it twice in order for it to
recognize the click. I know that the application code is running
however, as evidenced by the animations continuing according to the
timers within my app.
Is there any way to ensure that the application stays "awake"
listening for mouse events so that the first click will actually be
handled? I've observed this behavior on Ubuntu, Maemo, and OS X.
Python 2.5.1, Pygame 1.8.
Thanks in advance for any advice you have to offer.
Doug Petkanics