Changeset d58cf77 in orbit for android


Ignore:
Timestamp:
12/19/13 21:59:05 (7 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
90377aa
Parents:
16965bc
Message:
  • tilt sensor control integrated
File:
1 edited

Legend:

Unmodified
Added
Removed
  • android/src/info/puzzlebox/orbit/FragmentTabAdvanced.java

    r16965bc rd58cf77  
    656656                //              tiltZ = sensorEvent.values[0]; 
    657657 
    658                 appendDebugConsole("X: " + tiltX + ", Y: " + tiltY + "\n"); 
     658                //              appendDebugConsole("X: " + tiltX + ", Y: " + tiltY + "\n"); 
     659 
     660                seekBarYaw.setProgress(defaultControlYaw + (int) tiltY); 
     661                seekBarPitch.setProgress(defaultControlPitch + 10 + ((int) tiltX / 2)); 
     662 
    659663 
    660664 
Note: See TracChangeset for help on using the changeset viewer.