package org.tizen.device.usb.page;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.SelectionAdapter;
private Button radioButton[];
private final String sensorNumber = "10\n";
private boolean sensorOn;
+ private int preStatus = -1;
private IDevice currentDevice;
public UsbPage(AbstractInjectorItem item, String name) {
radioButton[1] = formUtil.createButton(subComposite, UsbConstants.remove, SWT.RADIO);
radioButton[1].setSelection(true);
sensorOn = false;
+ preStatus = 0;
/*
for( int i = 0 ; i < radioButton.length ; i++ ) {
if(radioButton[i].getSelection()) {
}
public void sendMessage(int status) {
+ if(preStatus == status)
+ return;
+
TestSensorMessage msg = new TestSensorMessage(status);
try {
// sensorSocket.send(sensorNumber + msg.getMessage());
// TODO Auto-generated catch block
e1.printStackTrace();
}
+ preStatus = status;
}
// @Override
Package:eventinjector-eplugin
-Version:0.2.36
+Version:0.2.37
OS:linux
Build-host-os:linux
Maintainer:yeongkyoon Lee <yeongkyoon.lee@samsung.com>, sungmin Ha <sungmin82.ha@samsung.com>
Source:eventinjector-eplugin
Package:eventinjector-eplugin
-Version:0.2.36
+Version:0.2.37
OS:windows
Build-host-os:linux
Maintainer:yeongkyoon Lee <yeongkyoon.lee@samsung.com>, sungmin Ha <sungmin82.ha@samsung.com>