Skip to content

Commit

Permalink
Preliminatory support for a fullscreen toggle for SDL platforms.
Browse files Browse the repository at this point in the history
Does not seem to work on Mac.
  • Loading branch information
hrydgard committed Jan 3, 2014
1 parent 3e11785 commit f570601
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Common/KeyMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,9 @@ const KeyMap_IntStrPair psp_button_names[] = {
#endif
{VIRTKEY_SAVE_STATE, "Save State"},
{VIRTKEY_LOAD_STATE, "Load State"},
#if !defined(_WIN32) && !defined(USING_GLES2)
{VIRTKEY_TOGGLE_FULLSCREEN, "Toggle Fullscreen"},
#endif

{VIRTKEY_AXIS_RIGHT_Y_MAX, "RightAn.Up"},
{VIRTKEY_AXIS_RIGHT_Y_MIN, "RightAn.Down"},
Expand Down
1 change: 1 addition & 0 deletions Common/KeyMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum {
VIRTKEY_REWIND = 0x1000c,
VIRTKEY_SAVE_STATE = 0x1000d,
VIRTKEY_LOAD_STATE = 0x1000e,
VIRTKEY_TOGGLE_FULLSCREEN = 0x1000f,
VIRTKEY_LAST,
VIRTKEY_COUNT = VIRTKEY_LAST - VIRTKEY_FIRST
};
Expand Down
4 changes: 4 additions & 0 deletions UI/EmuScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ void EmuScreen::onVKeyDown(int virtualKeyCode) {
SaveState::LoadSlot(g_Config.iCurrentStateSlot, 0);
}
break;
case VIRTKEY_TOGGLE_FULLSCREEN:
printf("huly\n");

This comment has been minimized.

Copy link
@unknownbrackets

unknownbrackets Jan 3, 2014

Collaborator

Huly.

-[Unknown]

This comment has been minimized.

Copy link
@hrydgard

hrydgard Jan 3, 2014

Author Owner

uhm, some nonsense log to check that it was getting called, will delete :)

System_SendMessage("toggle_fullscreen", "");
break;
}
}

Expand Down
2 changes: 1 addition & 1 deletion native
Submodule native updated 1 files
+34 −8 base/PCMain.cpp

0 comments on commit f570601

Please sign in to comment.