Suggestion Issue: disable esc key from exiting fullscreen


Pages: 1

NobodyX

  • Master Stencyler
  • *
February 19, 2016, 10:36:33 pm
Thought I'd post this here, it's mentioned in the forums but I'm not sure if it's here yet.

Issue:
Pressing esc in-game exits fullscreen, this should be disabled by default (or give the stencyl user an option to disable it, but it probably makes more sense to just disable completely).

Esc is expected to bring up a menu in a full-featured/commercial game, having it exit fullscreen instead feels unprofessional.


letmethink

  • Master Stencyler
  • *
February 20, 2016, 03:47:08 am
I'm currently making quite a few changes to how fullscreen works, but changing around line 400 of Engine.hx to this should work:
Code: [Select]
private function onKeyDown(e:KeyboardEvent = null)
{
#if flash
if(e.keyCode == Key.ESCAPE)
{
toggleFullscreen(true);
}
#end
}


NobodyX

  • Master Stencyler
  • *
February 20, 2016, 02:41:13 pm
Great! Thanks!

(I still think it should be officially changed for the sake of others)


captaincomic

  • Master Stencyler
  • *
March 07, 2016, 04:16:02 pm
Thanks! Added in build 9013.
  • Status changed from New to Resolved


Issue updated by Justin - March 17, 2016, 11:33:09 pm
  • Version changed from Stencyl 3.3, 3.3.0, 3.3.1, 3.3.2, Stencyl 3.4, 3.4.0 beta, 3.4.0 beta2 to Stencyl 3.3, Stencyl 3.4


Pages: 1

Details

  • Reported
    February 19, 2016, 10:36:33 pm
  • Updated
    March 17, 2016, 11:33:09 pm

  • View Status
    Public
  • Type
    Suggestion
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.3, Stencyl 3.4
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags