Commit 9adec4a4 authored by v.tarantik's avatar v.tarantik

#166 uprava ovladani rucicky novin

parent 0cc997e4
......@@ -115,6 +115,14 @@ public class MyWatchScene extends Scene {
return true;
}else{//ruka se nedotkne rucicky, ale jen sceny s hodinami
switch (pSceneTouchEvent.getAction()) {
case MotionEvent.ACTION_DOWN:
hourHandSprite.setRotation(NocniSledovaniHelper.getAngleFromLinearApproximationOfPoints(new Point((int) pSceneTouchEvent.getX(), (int) pSceneTouchEvent.getY()), new Point(
(int) hourHandSprite.getX(), (int) (hourHandSprite.getY() - (hourHandSprite.getHeight() / 2)))));
hourHandTouched = true;
return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment