Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: key binding issues  (Read 1190 times)

Arcanor

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 47
    • View Profile
    • http://arcanoria.com
key binding issues
« on: March 29, 2007, 07:10:49 AM »

I have created a system to map keyboard inputs to function pointers in my application.

I'm noticing that there are certain windows signals and other behaviors that are generated when using certain key combinations, for example:

    - alt-f4: terminates the application
    - alt-space: opens the top left (titlebar) window menu
    - alt-(any character): causes a beep sound, but it still processes my application's command map


The question is: how do people normally deal with these?  I guess I could avoid mapping alt-key combinations entirely but I'd like to be able to use them if possible.  And maybe there are other keys with Control- modifiers that should be avoided too?

Is there a convenient list of specific key combinations that I should NOT be allowing to be mapped in my application?  Alt-f4 is an obvious one, and alt-space too, but are there others?

Also, how can I keep windows from beeping every time I hit alt-1, alt-a, alt-q, etc.?
Logged
Arcanoria - online medieval fantasy RPG - www.arcanoria.com

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
key binding issues
« Reply #1 on: March 29, 2007, 07:33:17 PM »

Alt tab is another one. There are various window's hooks you can use to disable the default functionality - however, it is strongly discouraged to mess with system key shortcuts.

As for alt beeping, make sure you have the latest Eihort, it should cleanly handle the Alt key getting stolen from the system menu.
Logged

Arcanor

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 47
    • View Profile
    • http://arcanoria.com
key binding issues
« Reply #2 on: March 29, 2007, 07:43:59 PM »

I do have the latest Eihort.  Just downloaded a couple days ago from cvs in the "v1-4" branch.  Alt keys are still beeping.  Do I need to do something special to keep it from happening?
Logged
Arcanoria - online medieval fantasy RPG - www.arcanoria.com

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
key binding issues
« Reply #3 on: March 29, 2007, 09:28:13 PM »

Wierd, I surely don't see alt keys beeping here.
Logged

Arcanor

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 47
    • View Profile
    • http://arcanoria.com
key binding issues
« Reply #4 on: March 30, 2007, 10:06:48 AM »

Alt-keys are definitely still beeping for me, even on the Ogre demos right out of the box after building the new final release.  For example, the BSPCollision or Ocean demo.  I hit alt-F and it beeps but still processes the 'f' to hide the gui.

Since the ogre demos use ois, this should be confirmable by others who run them.

I have just posted this question to the ogre forum.  We'll see if anyone there has had a similar experience.
Logged
Arcanoria - online medieval fantasy RPG - www.arcanoria.com

Arcanor

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 47
    • View Profile
    • http://arcanoria.com
key binding issues
« Reply #5 on: April 09, 2007, 02:26:49 AM »

Just to follow up, this required a patch being submitted to the Ogre engine.  pjcast - I still have no idea why you weren't seeing the problem.

In any case, this problem will be solved once the Ogre patch is accepted and applied.
Logged
Arcanoria - online medieval fantasy RPG - www.arcanoria.com