@ -17,8 +17,6 @@ public final class ControlMessage {
public static final int TYPE_SET_SCREEN_POWER_MODE = 9 ;
public static final int TYPE_SET_SCREEN_POWER_MODE = 9 ;
public static final int TYPE_ROTATE_DEVICE = 10 ;
public static final int TYPE_ROTATE_DEVICE = 10 ;
public static final int FLAGS_PASTE = 1 ;
private int type ;
private int type ;
private String text ;
private String text ;
private int metaState ; // KeyEvent.META_*
private int metaState ; // KeyEvent.META_*
@ -30,7 +28,7 @@ public final class ControlMessage {
private Position position ;
private Position position ;
private int hScroll ;
private int hScroll ;
private int vScroll ;
private int vScroll ;
private int flags ;
private boolean paste ;
private int repeat ;
private int repeat ;
private ControlMessage ( ) {
private ControlMessage ( ) {
@ -77,9 +75,7 @@ public final class ControlMessage {
ControlMessage msg = new ControlMessage ( ) ;
ControlMessage msg = new ControlMessage ( ) ;
msg . type = TYPE_SET_CLIPBOARD ;
msg . type = TYPE_SET_CLIPBOARD ;
msg . text = text ;
msg . text = text ;
if ( paste ) {
msg . paste = paste ;
msg . flags = FLAGS_PASTE ;
}
return msg ;
return msg ;
}
}
@ -143,8 +139,8 @@ public final class ControlMessage {
return vScroll ;
return vScroll ;
}
}
public int getFlags ( ) {
public boolean getPaste ( ) {
return flags ;
return paste ;
}
}
public int getRepeat ( ) {
public int getRepeat ( ) {