public static final String OPT_LIGHT = "light";
public static final String OPT_PROXI = "proxi";
public static final String OPT_HAPTIC = "haptic";
- public static final String OPT_ROTATION = "rot";
public static Launcher getInstance() {
if (launcher == null) {
cmd.add("-device");
cmd.add("maru-brightness");
- cmd.add("virtio-sensor-pci,sensors=accel&geo&gyro&light&proxi&haptic");
-
// for vmodem
cmd.add("-device");
cmd.add("virtio-vmodem-pci");
cmd.add("virtio-touchscreen-pci");
}
- // for sensor (enabled accel, geo, gyro, light, haptic, rot)
+ // for sensor (accel, geo, gyro, light, proxi, haptic)
OptionType sensor = property.getPropertyValue().getAdvancedOption(OPT_SENSOR);
if (sensor != null) {
cmd.add("-device");
public static final String OPT_LIGHT = "light";
public static final String OPT_PROXI = "proxi";
public static final String OPT_HAPTIC = "haptic";
- public static final String OPT_ROTATION = "rot";
public static Launcher getInstance() {
if (launcher == null) {
cmd.add("maru-camera");
}
- // for sensor
- cmd.add("-device");
- cmd.add("virtio-sensor-pci,sensors=accel&geo&gyro&light&proxi&haptic");
-
// for battery
if (checkOnOff(property.getPropertyValue().getAdvancedOptionSubValue(OPT_DEVICE, OPT_BATTERY))) {
cmd.add("-device");
cmd.add("virtio-power-pci");
}
- // for sensor (enabled accel, geo, gyro, light, haptic, rot)
+ // for sensor (accel, geo, gyro, light, proxi, haptic)
OptionType sensor = property.getPropertyValue().getAdvancedOption(OPT_SENSOR);
if (sensor != null) {
cmd.add("-device");
<item type="checkLabel" name="sensor" title="Sensor">
<item type="checkbox" name="accel" title="Accelerometer"/>
<item type="checkbox" name="gyro" title="Gyroscope"/>
+ <item type="checkbox" name="geo" title="Geo-magnetic"/>
+ <item type="checkbox" name="proxi" title="Proximity"/>
+ <item type="checkbox" name="light" title="Light"/>
+ <item type="checkbox" name="haptic" title="Haptic"/>
</item>
<item type="checkLabel" name="device" title="Device">
<item type="checkbox" name="camera" title="Camera"/>
<subOption name="charger" value="on"/>
<subOption name="usb" value="on"/>
</option>
- <option name="sensor">
- <subOption name="accel" value="on"/>
- <subOption name="gyro" value="on"/>
- </option>
+ <option name="sensor">
+ <subOption name="accel" value="on"/>
+ <subOption name="gyro" value="on"/>
+ <subOption name="geo" value="on"/>
+ <subOption name="light" value="on"/>
+ <subOption name="proxi" value="on"/>
+ <subOption name="haptic" value="on"/>
+ </option>
</advancedOption>
</EmulatorConfiguration>
<item type="checkbox" name="proxi" title="Proximity"/>
<item type="checkbox" name="light" title="Light"/>
<item type="checkbox" name="haptic" title="Haptic"/>
- <item type="checkbox" name="rot" title="Rotation"/>
</item>
<item type="checkLabel" name="device" title="Device">
<!-- <item type="checkbox" name="nfc" title="NFC"/> -->
<subOption name="light" value="on"/>
<subOption name="proxi" value="on"/>
<subOption name="haptic" value="on"/>
- <subOption name="rot" value="on"/>
</option>
</advancedOption>
</EmulatorConfiguration>