https://www.lavishsoft.com/wiki/index.php?title=LGUI2:Input_Hooks&feed=atom&action=historyLGUI2:Input Hooks - Revision history2024-03-28T13:42:48ZRevision history for this page on the wikiMediaWiki 1.33.0https://www.lavishsoft.com/wiki/index.php?title=LGUI2:Input_Hooks&diff=8408&oldid=prevLax at 12:09, 4 October 20192019-10-04T12:09:29Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">←Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 12:09, 4 October 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l30" >Line 30:</td>
<td colspan="2" class="diff-lineno">Line 30:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Category:LavishGUI 2]]</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">{{LGUI2:Topic}}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">[[Category:LavishGUI 2|LavishGUI 2]]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Category:LavishGUI 2 <ins class="diffchange diffchange-inline">Input</ins>]]</div></td></tr>
</table>Laxhttps://www.lavishsoft.com/wiki/index.php?title=LGUI2:Input_Hooks&diff=8406&oldid=prevLax: Created page with "LGUI2:Input Hooks| are similar to LGUI2:Input Bindings| in that LGUI2:Event Handlers| can be mapped to LGUI2:Input Controls|, with some key differences. Input..."2019-10-04T12:03:56Z<p>Created page with "<a href="/wiki/index.php/LGUI2:Input_Hooks" title="LGUI2:Input Hooks">LGUI2:Input Hooks</a> are similar to <a href="/wiki/index.php/LGUI2:Input_Bindings" title="LGUI2:Input Bindings">LGUI2:Input Bindings</a> in that <a href="/wiki/index.php/LGUI2:Event_Handlers" title="LGUI2:Event Handlers">LGUI2:Event Handlers</a> can be mapped to <a href="/wiki/index.php?title=LGUI2:Input_Controls&action=edit&redlink=1" class="new" title="LGUI2:Input Controls (page does not exist)">LGUI2:Input Controls</a>, with some key differences. Input..."</p>
<p><b>New page</b></p><div>[[LGUI2:Input Hooks|Input Hooks]] are similar to [[LGUI2:Input Bindings|Input Bindings]] in that [[LGUI2:Event Handlers|Event Handlers]] can be mapped to [[LGUI2:Input Controls|Input Controls]], with some key differences.<br />
<br />
Input Bindings are a sort of toggle, where if your current inputs match some set, the input is blocked and the toggle is activated; when the inputs no longer match, the toggle is deactivated. In the context of pressing buttons, that toggle behavior is convenient.<br />
<br />
Input Hooks on the other hand do not activate a toggle, but rather pipe all matching input events through a specified Event Handler. Additionally in contrast to Input Bindings, Input Hooks do not block inputs by default. Input Hooks can be restricted to a specific control, a specific device, etc.<br />
<br />
= Defining an Input Hook =<br />
<br />
Each Input Binding is defined by a [https://json.org/ JSON] object, enclosed by {}. <br />
<br />
Each binding must have at least "control" and "eventHandler"<br />
<br />
{| border="1" style="border-collapse:collapse" cellpadding="5"<br />
!colspan="2"|Input Hook properties<br />
|-<br />
! control<br />
| An [[LGUI2:Input Control|Input Control]] definition to match inputs against<br />
|-<br />
! modifiers<br />
| (Optional) A set of modifiers to restrict against<br />
|-<br />
! eventHandler<br />
| An [[LGUI2:Event Handler|Event Handler]] to route inputs through<br />
|-<br />
! keyboardFocus<br />
| (Optional) If true, the Input Hook is activated while the element has Keyboard Focus. If neither Mouse or Keyboard focus are specified, the Input Hook is active by default.<br />
|-<br />
! mouseFocus<br />
| (Optional) If true, the Input Hook is activated while the element has Mouse Focus (the primary element with mouseover). If neither Mouse or Keyboard focus are specified, the Input Hook is active by default. <br />
|}<br />
<br />
[[Category:LavishGUI 2]]</div>Lax