commit 5bff864204f43e11c3b6759c85940fec70aedbb7
parent 9dc003ae66e18ae079b06bef68644ade27d5ff2d
Author: Adam M <[email protected]>
Date: Thu, 7 Nov 2019 22:46:43 -0600
Reverse translate key direction in blank. Add blank description
Diffstat:
2 files changed, 6 insertions(+), 18 deletions(-)
diff --git a/plugin.json b/plugin.json
@@ -72,8 +72,8 @@
"tags":["Visual","Polyphonic"]
},
{"slug":"computerscare-blank",
- "name":"Blank",
- "description":"Customizable blank panel",
+ "name":"Custom Blank",
+ "description":"Customizable, resizable, lovable blank panel. Load your own PNG, JPEG, BMP, or GIF. Translate image with A,S,D,W keys. Zoom in/out with Z,X keys.",
"tags":["Blank","Visual"]
}
]
diff --git a/src/ComputerscareBlank.cpp b/src/ComputerscareBlank.cpp
@@ -210,38 +210,26 @@ void PNGDisplay::onHoverKey(const event::HoverKey& e) {
switch (e.key) {
case GLFW_KEY_A: {
- //offset.x -= arrowSpeed;
- DEBUG("A pressed");
- module->xOffset -= dPosition;
+ module->xOffset += dPosition;
e.consume(this);
} break;
case GLFW_KEY_S: {
- //offset.x -= arrowSpeed;
- DEBUG("S pressed");
- module->yOffset += module->invertY ? dPosition : -dPosition;
+ module->yOffset -= module->invertY ? dPosition : -dPosition;
e.consume(this);
} break;
case GLFW_KEY_D: {
- //offset.x -= arrowSpeed;
- DEBUG("D pressed");
- module->xOffset += dPosition;
+ module->xOffset -= dPosition;
e.consume(this);
} break;
case GLFW_KEY_W: {
- //offset.x -= arrowSpeed;
- DEBUG("W pressed");
- module->yOffset -= module->invertY ? dPosition : -dPosition;
+ module->yOffset += module->invertY ? dPosition : -dPosition;
e.consume(this);
} break;
case GLFW_KEY_Z: {
- //offset.x -= arrowSpeed;
- DEBUG("Z pressed");
module->zoom += dZoom;
e.consume(this);
} break;
case GLFW_KEY_X: {
- //offset.x -= arrowSpeed;
- DEBUG("X pressed");
module->zoom -= dZoom;
e.consume(this);
} break;