Maniphest T31671

Keyboard Sensor blocks Quit Game Key Binding
Closed, Resolved

Assigned To
None
Authored By
Angus Hollands (agoose77)
Jun 1 2012, 2:10 PM
Tags
  • Game Engine
Subscribers
Angus Hollands (agoose77)
Mitchell Stokes (moguri)

Description

In the BGE, as far as I am aware the keyboard sensor used to (prior to Moguri's fix for setting the quit game button) override the quit game button.
It is due to Moguri's addition that i understand it actually disables the quit game key binding.
It appears that if the ESC key is bound in the keyboard sensor, regardless of the current quit game button option, it treats it as overriding the end game logic, and simply blocks.
If you setup two blend files, each with just a keyboard sensor, disconnected from anything, then in both blends set the quit game button in the scene panel to Q
Then, in one blend set the keyboard sensor to ESC the other to any key other than ESC or Q (as we expect it would override Q, and i want to show the keybinding as the independant variable).

Event Timeline

Angus Hollands (agoose77) edited a custom field.Jun 1 2012, 2:10 PM

In order to fix this, i expect all one has to do is change the hardcoded condition in the keyboard sensor code to compare against the scene's Quit Game Button.

Mitchell Stokes (moguri) added a comment.Jun 10 2012, 10:00 PM

This should be fixed as of r47700. Could you please verify that this revision fixes the problem?

Mitchell Stokes (moguri) changed the task status from Unknown Status to Resolved.Jun 14 2012, 8:41 AM