summaryrefslogtreecommitdiff
path: root/UserInput.cpp
diff options
context:
space:
mode:
authorJonas Ask2009-11-10 01:12:05 +0000
committerJonas Ask2009-11-10 01:12:05 +0000
commitfee8c8d689abd4f5e37b72a3e8c6ca8e85a4034e (patch)
tree1540e7ffb837e6542d15a93fde07839d66f0fc92 /UserInput.cpp
parent038d045f19146776b886edbc23f88aa1f0c9e6a7 (diff)
downloadstonesense-fee8c8d689abd4f5e37b72a3e8c6ca8e85a4034e.tar.gz
stonesense-fee8c8d689abd4f5e37b72a3e8c6ca8e85a4034e.tar.bz2
stonesense-fee8c8d689abd4f5e37b72a3e8c6ca8e85a4034e.tar.xz
Early prototype rotation...
Diffstat (limited to 'UserInput.cpp')
-rw-r--r--UserInput.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/UserInput.cpp b/UserInput.cpp
index 37e5374..5003cee 100644
--- a/UserInput.cpp
+++ b/UserInput.cpp
@@ -39,6 +39,11 @@ void doKeys(){
DisplayedSegmentX+=stepsize;
timeToReloadSegment = true;
}
+ if(key[KEY_ENTER]){
+ DisplayedRotation++;
+ DisplayedRotation %= 4;
+ timeToReloadSegment = true;
+ }
if(key[KEY_PGDN] || key[KEY_9]){
DisplayedSegmentZ--;
if(DisplayedSegmentZ<0) DisplayedSegmentZ = 0;