Exemple #1
0
		protected TouchZone(string name, TouchConfiguration touchConfiguration, int[,] mask)
		{
			Name = name;
			_touchConfiguration = touchConfiguration;
			Mask = mask;
			_current = new TouchPoint();
		}
		public MiddleClickStripMenuItem(TouchConfiguration touchConfiguration) : base("Middle-click", Properties.Resources.start_here)
		{
			_touchConfiguration = touchConfiguration;
			CheckOnClick = true;
		}
		public LeftTouchZone(StateMachine stateMachine, TouchConfiguration touchConfiguration) : base("Left", touchConfiguration, DefaultMask)
		{
			_stateMachine = stateMachine;
		}
Exemple #4
0
 /// <summary>
 /// Configures any container data to the sub setup components.
 /// </summary>
 protected virtual void ConfigureContainer()
 {
     TouchConfiguration.ConfigureContainer();
     GrabConfiguration.ConfigureContainer();
 }
 public TouchOverStripMenuItem(TouchConfiguration touchConfiguration) : base("Touch-over-click", Properties.Resources.user_desktop)
 {
     _touchConfiguration = touchConfiguration;
     CheckOnClick        = true;
 }
Exemple #6
0
 public MiddleClickStripMenuItem(TouchConfiguration touchConfiguration) : base("Middle-click", Properties.Resources.start_here)
 {
     _touchConfiguration = touchConfiguration;
     CheckOnClick        = true;
 }
		public LeftHandedStripMenuItem(TouchConfiguration touchConfiguration) : base("Left-handed", Properties.Resources.input_mouse)
		{
			_touchConfiguration = touchConfiguration;
			CheckOnClick = true;
		}
 public RightTouchZone(StateMachine stateMachine, TouchConfiguration touchConfiguration) : base("Right", touchConfiguration, DefaultMask)
 {
     _stateMachine = stateMachine;
 }
		public TouchOverStripMenuItem(TouchConfiguration touchConfiguration) : base("Touch-over-click", Properties.Resources.user_desktop)
		{
			_touchConfiguration = touchConfiguration;
			CheckOnClick = true;
		}
Exemple #10
0
 private void InitTouch(TouchConfiguration touchConfig)
 {
     spi = new SPI(new SPI.Configuration(touchConfig.chipSelect, false, 1, 1, false, true, 2000, touchConfig.channel));
     touchIRQ = new InputPort(touchConfig.touchIRQ, false, Port.ResistorMode.Disabled);
     terminateTouchThread = false;
     touchThread = new Thread(TouchThread);
     touchThread.Priority = ThreadPriority.Highest;
     touchThread.Start();
 }
Exemple #11
0
 public FEZTouch(LCDConfiguration lcdConfig, TouchConfiguration touchConfig)
 {
     InitLCD(lcdConfig);
     InitTouch(touchConfig);
 }
Exemple #12
0
 public LeftHandedStripMenuItem(TouchConfiguration touchConfiguration) : base("Left-handed", Properties.Resources.input_mouse)
 {
     _touchConfiguration = touchConfiguration;
     CheckOnClick        = true;
 }