summaryrefslogtreecommitdiff
path: root/src/koopatlas/camera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/koopatlas/camera.cpp')
-rw-r--r--src/koopatlas/camera.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/koopatlas/camera.cpp b/src/koopatlas/camera.cpp
index 9efbcd6..87547d9 100644
--- a/src/koopatlas/camera.cpp
+++ b/src/koopatlas/camera.cpp
@@ -70,30 +70,29 @@ int dWorldCamera_c::onDelete() {
int dWorldCamera_c::onExecute() {
int heldButtons = Remocon_GetButtons(GetActiveRemocon());
if (heldButtons & WPAD_MINUS) {
- int nowPressed = Remocon_GetPressed(GetActiveRemocon());
bool change = false;
- if (nowPressed & WPAD_LEFT) {
- currentX -= 16;
+ if (heldButtons & WPAD_LEFT) {
+ currentX -= 8.0f;
change = true;
}
- if (nowPressed & WPAD_RIGHT) {
- currentX += 16;
+ if (heldButtons & WPAD_RIGHT) {
+ currentX += 8.0f;
change = true;
}
- if (nowPressed & WPAD_UP) {
- currentY += 16;
+ if (heldButtons & WPAD_UP) {
+ currentY += 8.0f;
change = true;
}
- if (nowPressed & WPAD_DOWN) {
- currentY -= 16;
+ if (heldButtons & WPAD_DOWN) {
+ currentY -= 8.0f;
change = true;
}
- if (nowPressed & WPAD_B) {
- zoomLevel -= 0.02;
+ if (heldButtons & WPAD_B) {
+ zoomLevel -= 0.10f;
change = true;
}
- if (nowPressed & WPAD_A) {
- zoomLevel += 0.02;
+ if (heldButtons & WPAD_A) {
+ zoomLevel += 0.10f;
change = true;
}
if (change) {