From: sungmin ha Date: Fri, 6 Jul 2012 12:07:09 +0000 (+0900) Subject: [Title]fixed 3-axis sensor pitch slider bug X-Git-Tag: 2.2.1_release^2~87 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5bd5c702a3cd8c739de286103a66df115b5a9f7b;p=sdk%2Femulator%2Feventinjector-eplugin.git [Title]fixed 3-axis sensor pitch slider bug [Type]Bugfix [Module]eventinjector [Priority]Major [Jira#]N_SE-2242 [Redmine#] // Redmine Isuue Number [Problem] // Problem Description [Cause] // Cause Description [Solution] // Solution Description [TestCase] // Executed the test-target (How to) --- diff --git a/org.tizen.sensor.accelerometer/src/org/tizen/sensor/accelerometer/page/MobilePanel.java b/org.tizen.sensor.accelerometer/src/org/tizen/sensor/accelerometer/page/MobilePanel.java index 56834ec..19bd700 100644 --- a/org.tizen.sensor.accelerometer/src/org/tizen/sensor/accelerometer/page/MobilePanel.java +++ b/org.tizen.sensor.accelerometer/src/org/tizen/sensor/accelerometer/page/MobilePanel.java @@ -442,11 +442,11 @@ public class MobilePanel extends JPanel implements ISelectionListener { // Control pitch int newpitch = mousedownpitch - (e.getY() - mousedowny); - while (newpitch > 180) { + while (newpitch > 270) { newpitch -= 360; gyroPitchCount++; } - while (newpitch < -180) { + while (newpitch < -90) { newpitch += 360; gyroPitchCount--; } @@ -467,11 +467,11 @@ public class MobilePanel extends JPanel implements ISelectionListener { // Control pitch int newpitch = mousedownpitch - (e.getY() - mousedowny); - while (newpitch > 180) { + while (newpitch > 270) { newpitch -= 360; gyroPitchCount++; } - while (newpitch < -180) { + while (newpitch < -90) { newpitch += 360; gyroPitchCount--; } diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest index 661e746..5c02e2e 100644 --- a/package/pkginfo.manifest +++ b/package/pkginfo.manifest @@ -1,5 +1,5 @@ Package:eventinjector-eplugin -Version:0.2.33 +Version:0.2.34 OS:linux Build-host-os:linux Maintainer:yeongkyoon Lee , sungmin Ha @@ -9,7 +9,7 @@ Install-dependency:common-eplugin[linux], base-ide-product[linux] Source:eventinjector-eplugin Package:eventinjector-eplugin -Version:0.2.33 +Version:0.2.34 OS:windows Build-host-os:linux Maintainer:yeongkyoon Lee , sungmin Ha