Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Pages: [1] 2

Author Topic: KeyPress stops being detected after 15-30 seconds  (Read 2021 times)

kornerr

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 37
    • View Profile
    • Opensource Game Studio
KeyPress stops being detected after 15-30 seconds
« on: June 28, 2011, 08:58:44 AM »

HI. I've been posting before about the bug in 1.3 (1.2 does not have it).
I've added some logging to LinuxKeyboard.cpp and here is the output:

virtual void OIS::LinuxKeyboard::capture()
event.type == KeyPress
bool OIS::LinuxKeyboard::_injectKeyDown(KeySym, int)

virtual void OIS::LinuxKeyboard::capture()
event.type == KeyRelease
!isKeyRepeat

virtual void OIS::LinuxKeyboard::capture()
event.type == KeyPress
bool OIS::LinuxKeyboard::_injectKeyDown(KeySym, int)

virtual void OIS::LinuxKeyboard::capture()
event.type == KeyRelease
!isKeyRepeat

and so on for about 15-30 seconds.

then goes this:

virtual void OIS::LinuxKeyboard::capture()
event.type == KeyRelease
isKeyRepeat

virtual void OIS::LinuxKeyboard::capture()
event.type == KeyRelease
!isKeyRepeat

virtual void OIS::LinuxKeyboard::capture()
event.type == KeyRelease
isKeyRepeat

virtual void OIS::LinuxKeyboard::capture()
event.type == KeyRelease
!isKeyRepeat

somehow it's detected as KeyRelease & isKeyRepeat.

kornerr

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 37
    • View Profile
    • Opensource Game Studio
Re: KeyPress stops being detected after 15-30 seconds
« Reply #1 on: June 28, 2011, 08:59:33 AM »

i mean the KeyPress is detected as KeyRelease & isKeyRepeat, i mean.

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: KeyPress stops being detected after 15-30 seconds
« Reply #2 on: June 28, 2011, 06:10:01 PM »

This output is from holding one key down? One change was the change of no longer disabling key repeat on x11 and instead try to detect it. Obviously, something is probably broken. I will try and take a look asap.
Logged

kornerr

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 37
    • View Profile
    • Opensource Game Studio
Re: KeyPress stops being detected after 15-30 seconds
« Reply #3 on: June 28, 2011, 06:58:54 PM »

No, I was constantly pressing and then releasing a key.

kornerr

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 37
    • View Profile
    • Opensource Game Studio
Re: KeyPress stops being detected after 15-30 seconds
« Reply #4 on: June 28, 2011, 07:01:05 PM »

In my game it wasn't hard to deal with autorepeat, so may be it's not all that important to fix it. As long as one keeps the state of the key, autorepeat doesn't matter.

kornerr

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 37
    • View Profile
    • Opensource Game Studio
Re: KeyPress stops being detected after 15-30 seconds
« Reply #5 on: July 03, 2011, 09:08:26 PM »

Any luck, pjcast?

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: KeyPress stops being detected after 15-30 seconds
« Reply #6 on: July 05, 2011, 03:10:23 PM »

Sorry, haven't had time this last week. With the holidays and some personal issues. Hope to look into the issue this week though.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: KeyPress stops being detected after 15-30 seconds
« Reply #7 on: July 06, 2011, 10:55:06 PM »

This issue still relates to Fluxbox? I installed Fluxbox under Ubuntu 10 and am not seeing any obvious issues. I'm also not 100% understanding what the issue you are trying to describe is. Are you seeing a keyPress event no longer happening? or no more keyReleases?
Logged

kornerr

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 37
    • View Profile
    • Opensource Game Studio
Re: KeyPress stops being detected after 15-30 seconds
« Reply #8 on: September 13, 2011, 03:35:51 AM »

no, this issue is not related to any wm particularly. it happens everywhere.
yes, no  more key presses.

kornerr

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 37
    • View Profile
    • Opensource Game Studio
Re: KeyPress stops being detected after 15-30 seconds
« Reply #9 on: September 13, 2011, 03:36:47 AM »

i'll create a test app with a video depicting the problem.

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: KeyPress stops being detected after 15-30 seconds
« Reply #10 on: September 14, 2011, 06:58:22 PM »

Thanks, that would be helpful.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: KeyPress stops being detected after 15-30 seconds
« Reply #12 on: October 02, 2011, 02:27:56 PM »

Thanks. Your video of the problem was helpful. I'll play around with getting your app to build (though, my guess is it should also happen in the OIS demo itself) and identify the issue.
Logged

kornerr

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 37
    • View Profile
    • Opensource Game Studio
Re: KeyPress stops being detected after 15-30 seconds
« Reply #13 on: October 07, 2011, 04:33:12 AM »

wtf. troll?

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: KeyPress stops being detected after 15-30 seconds
« Reply #14 on: October 18, 2011, 06:02:19 PM »

I haven't been able to reproduce this with kubuntu & your demo app. Is alt-tabbing a critical part of making the bug happen?
Logged
Pages: [1] 2