Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
fixes #3054: move desktop test app keybindings output to startup log
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Nov 17, 2015
1 parent 85ab486 commit ac10cc1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 14 deletions.
8 changes: 1 addition & 7 deletions docs/DEVELOP_LINUX.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,4 @@ The `zsh` will treat the * in this command as a glob, so you'll need to run

### Usage

- Press `S` to cycle through bundled styles
- Press `X` to reset the transform
- Press `N` to reset north
- Press `Tab` to toggle debug information
- Press `C` to toggle symbol collision debug boxes
- Press `Esc` to quit
- Press `1` through `6` to add increasing numbers of point annotations for testing
Keyboard shortcuts for testing functionality are logged to the console when the test app is started.
8 changes: 1 addition & 7 deletions docs/DEVELOP_OSX.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,4 @@ Set up the access token by editing the scheme for the application target, then a

### Usage

- Press `S` to cycle through bundled styles
- Press `X` to reset the transform
- Press `N` to reset north
- Press `Tab` to toggle debug information
- Press `C` to toggle symbol collision debug boxes
- Press `Esc` to quit
- Press `1` through `6` to add increasing numbers of point annotations for testing
Keyboard shortcuts for testing functionality are logged to the console when the test app is started.
25 changes: 25 additions & 0 deletions platform/default/glfw_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,31 @@ GLFWView::GLFWView(bool fullscreen_, bool benchmark_)
pixelRatio = static_cast<float>(fbWidth) / width;

glfwMakeContextCurrent(nullptr);

printf("\n");
printf("================================================================================\n");
printf("\n");
printf("- Press `S` to cycle through bundled styles\n");
printf("- Press `X` to reset the transform\n");
printf("- Press `N` to reset north\n");
printf("- Press `C` to toggle symbol collision debug boxes\n");
printf("- Press `R` to toggle any available `night` style class\n");
printf("\n");
printf("- Press `1` through `6` to add increasing numbers of point annotations for testing\n");
printf("- Press `7` through `0` to add increasing numbers of shape annotations for testing\n");
printf("\n");
printf("- Press `Q` to remove annotations\n");
printf("- Press `P` to add a random custom runtime imagery annotation\n");
printf("- Press `W` to pop the last-added annotation off\n");
printf("\n");
printf("- `Control` + mouse drag to rotate\n");
printf("- `Shift` + mouse drag to tilt\n");
printf("\n");
printf("- Press `Tab` to toggle debug information\n");
printf("- Press `Esc` to quit\n");
printf("\n");
printf("================================================================================\n");
printf("\n");
}

GLFWView::~GLFWView() {
Expand Down

0 comments on commit ac10cc1

Please sign in to comment.