[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Slick Forums • View topic - [BUG] hasFocus() and isKeyDown() issues

Slick Forums

Discuss the Slick 2D Library
It is currently Thu Jul 09, 2020 7:33 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Aug 03, 2012 4:11 am 
Offline

Joined: Fri Aug 03, 2012 3:51 am
Posts: 1


Top
 Profile  
 
PostPosted: Fri Aug 03, 2012 7:29 pm 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1482
The first issue:
viewtopic.php?f=1&t=5260

The second issue sounds like another LWJGL bug, since hasFocus just calls Display.isActive.

So, in short... Neither of those are something we can fix on our end very easily.


Top
 Profile  
 
PostPosted: Tue Sep 18, 2012 1:46 pm 
Offline

Joined: Mon Sep 17, 2012 8:33 am
Posts: 1
I've found another issue that may be related to this. (Also, I think I already posted this here, but I can't find it anywhere. So forgive me, if I repost).

When I check input.isKeyDown on Shift or Ctrl keys, as soon as I press the key once, the isKeyDown method always returns true. This happens against the latest version of the dev branch. I verified the problem on a friends slick setup and he also could check, that the bug did not occur in the "stable" version published on the slick homepage.

This happens even if the window does not lose focus. I'm not sure which keys are all affected by this, I only found LCTRL, RCTRL, LSHIFT and RSHIFT are not working up until now.

Here is the test class I used to verify the problem outside of my project: http://pastebin.com/NUBZjAWK


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group