Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
inputpolling [2019/04/19 20:08] – [Input Devices] admininputpolling [2019/05/07 15:16] – [Runtime] admin
Line 37: Line 37:
 If a HotKey was detected, the controller will call the OnTriggered event and/or an attached TAction instance. If a HotKey was detected, the controller will call the OnTriggered event and/or an attached TAction instance.
  
-You are allowed to setup your HotKeys at design- and at runtime.+You are allowed to setup your HotKeys at design- and runtime.
  
 ==== DesignTime ==== ==== DesignTime ====
Line 49: Line 49:
   - Here we can now add a new **TGorillaHotKeyInputItem**.   - Here we can now add a new **TGorillaHotKeyInputItem**.
   - In the item select the "**Kind**" of device.   - In the item select the "**Kind**" of device.
-  - and add the message input code+  - and add the message input code (tables below)
   - Repeat it for any further inputs you wish to combine.   - Repeat it for any further inputs you wish to combine.
 ==== Runtime ==== ==== Runtime ====
Line 62: Line 62:
 end; end;
  
 +procedure TForm1.FormCreate(Sender: TObject);
 var  var 
   FInput : TGorillaInputController;   FInput : TGorillaInputController;
Line 75: Line 76:
   LHotKey.AddInput(TGorillaInputDeviceType.Keyboard, Ord(GORILLA_INPUT_KEY_C));   LHotKey.AddInput(TGorillaInputDeviceType.Keyboard, Ord(GORILLA_INPUT_KEY_C));
   LHotKey.AddInput(TGorillaInputDeviceType.Keyboard, Ord(GORILLA_INPUT_KEY_RETURN));   LHotKey.AddInput(TGorillaInputDeviceType.Keyboard, Ord(GORILLA_INPUT_KEY_RETURN));
 +end;
 +  
 +procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
 +begin
 +  FInput.DisposeOf();
 +  FInput := nil;
 +end;
 </file> </file>
- 
- 
 ===== Persistent Messages ===== ===== Persistent Messages =====
  
-Besides the HotKey settings the component supports persistent/continuously messages.+Besides the HotKey settings the component supports persistent/continuous messages.
 A persistent message is a continuously notified message from the system and not a temporary message like a click or key-press. A persistent message is a continuously notified message from the system and not a temporary message like a click or key-press.
  
Line 264: Line 270:
 </code> </code>
  
 +__Notes:__
 +You are allowed declare an input multiple times in a sequence.
 +
 +Each sequence can hold up to 16 HotKeys.
 ==== DesignTime ==== ==== DesignTime ====