SetVideoWindow() called multiple times going fullscreen?? (1 Viewer)

A

Anonymous

Guest
When playing video and you hit "X" to toggle full screen the SetVideoWindow() function gets called 2 times to go full screen and 3 times when you come back to small. Why is this? (I know I could probably continue to wade through the code but I was hoping someone could provide a quick answer)

Where are the key mappings defined? Like where "X" is for full screen in video playback?
 

Mr.Mitchell

Retired Team Member
  • Premium Supporter
  • May 13, 2004
    227
    0
    the Netherlands
    Keys are mapped to actions in the keymap.xml file. If you take a look at the file you will find the following in the global section:

    <action>
    <id>18</id>
    <key>X</key>
    <sound>click.wav</sound>
    <description>Toggle between GUI and fullscreen</description>
    </action>

    This maps action 18 to the X key. Action 18 is ACTION_SHOW_GUI which you can find in Core/Guilib/Action.cs.

    In some windows the X is mapped to another action like this:

    <action>
    <id>84</id>
    <key>X</key>
    <sound />
    <description>Hide SubMenu</description>
    </action>

    which overrides the definition in the global section.

    The translation from the actual key to the action is done in the ActionTranslator.cs file. This class uses the keymap.xml file.
     

    Users who are viewing this thread

    Top Bottom