private static class InputSource { private final Canvas source; private final PhysicalLayer physicalLayer; @GuardedBy("LogicalLayer.this") private InputState lastState; public InputSource(final Canvas source, final PhysicalLayer physicalLayer) { this.source = source; this.physicalLayer = physicalLayer; lastState = InputState.EMPTY; } }
private static class InputSource { private final Canvas source; private final PhysicalLayer physicalLayer; @GuardedBy("LogicalLayer.this") private InputState lastState; public InputSource(final Canvas source, final PhysicalLayer physicalLayer) { this.source = source; this.physicalLayer = physicalLayer; lastState = InputState.EMPTY; } }
public class GLFWKeyboardWrapper implements KeyboardWrapper { @GuardedBy("this") protected final LinkedList<KeyEvent> _upcomingEvents = new LinkedList<KeyEvent>();
@GuardedBy("this") private final CopyOnWriteArrayList<Canvas> _canvases; private final Timer _timer;
@GuardedBy("this") private final CopyOnWriteArrayList<Canvas> _canvases; private final Timer _timer;
public class JoglNewtMouseWrapper implements MouseWrapper, MouseListener { @GuardedBy("this") protected final LinkedList<MouseState> _upcomingEvents = Lists.newLinkedList(); @GuardedBy("this") protected JoglNewtMouseIterator _currentIterator = null; @GuardedBy("this") protected MouseState _lastState = null;
public class GLFWMouseWrapper implements MouseWrapper { @GuardedBy("this") protected final LinkedList<MouseState> _upcomingEvents = new LinkedList<MouseState>();
@GuardedBy("this") private final LinkedList<AbstractGestureEvent> _upcomingEvents = new LinkedList<AbstractGestureEvent>(); @GuardedBy("this") private SwtGestureIterator _currentIterator = null; @GuardedBy("this") private final List<AbstractTouchInterpreter> _touchInterpreters = new ArrayList<>(); @GuardedBy("this") private final List<TouchHistory> _touchHistories = new ArrayList<>();