tune
This commit is contained in:
@@ -1343,6 +1343,46 @@ Probably not essential.</p>
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Disp_DispEngine_IsKeyPressed_" data-uid="Hi.Disp.DispEngine.IsKeyPressed*"></a>
|
||||
|
||||
<h3 id="Hi_Disp_DispEngine_IsKeyPressed_System_String_" data-uid="Hi.Disp.DispEngine.IsKeyPressed(System.String)">
|
||||
IsKeyPressed(string)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Checks if a specific keyboard key is currently pressed.
|
||||
Delegates to <a class="xref" href="Hi.Native.panel_state_t.html#Hi_Native_panel_state_t_IsKeyPressed_System_String_">IsKeyPressed(string)</a>.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public bool IsKeyPressed(string key)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>Key string (W3C KeyboardEvent.key value, e.g. “Alt”, “ArrowLeft”).</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
||||
<dd><p>True if the specified key is pressed; otherwise, false.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Disp_DispEngine_IsMouseButtonPressed_" data-uid="Hi.Disp.DispEngine.IsMouseButtonPressed*"></a>
|
||||
|
||||
<h3 id="Hi_Disp_DispEngine_IsMouseButtonPressed_System_Int64_" data-uid="Hi.Disp.DispEngine.IsMouseButtonPressed(System.Int64)">
|
||||
@@ -1350,7 +1390,8 @@ Probably not essential.</p>
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Checks if a specific mouse button is currently pressed.</p>
|
||||
<div class="markdown level1 summary"><p>Checks if a specific mouse button is currently pressed.
|
||||
Delegates to <a class="xref" href="Hi.Native.panel_state_t.html#Hi_Native_panel_state_t_IsMouseButtonPressed_System_Int64_">IsMouseButtonPressed(long)</a>.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
@@ -1378,22 +1419,14 @@ Probably not essential.</p>
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="Hi_Disp_DispEngine_IsMouseButtonPressed_System_Int64__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>This method is useful for implementing conditional UI behaviors based on mouse button state:</p>
|
||||
<pre><code class="lang-csharp">// Check if left mouse button is pressed
|
||||
if (dispEngine.IsMouseButtonPressed((long)HiMouseButton.Left))
|
||||
{
|
||||
// Perform special action while left button is held down
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Disp_DispEngine_KeyDown_" data-uid="Hi.Disp.DispEngine.KeyDown*"></a>
|
||||
|
||||
<h3 id="Hi_Disp_DispEngine_KeyDown_System_Int64_" data-uid="Hi.Disp.DispEngine.KeyDown(System.Int64)">
|
||||
KeyDown(long)
|
||||
<h3 id="Hi_Disp_DispEngine_KeyDown_System_String_" data-uid="Hi.Disp.DispEngine.KeyDown(System.String)">
|
||||
KeyDown(string)
|
||||
|
||||
</h3>
|
||||
|
||||
@@ -1403,13 +1436,13 @@ This function is typically called in the GUI implementation for keyboard interac
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public void KeyDown(long key)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public void KeyDown(string key)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
|
||||
<dd><p>key</p>
|
||||
<dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>Key string (W3C KeyboardEvent.key value, e.g. “Alt”, “ArrowLeft”, “a”).</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -1426,8 +1459,8 @@ This function is typically called in the GUI implementation for keyboard interac
|
||||
|
||||
<a id="Hi_Disp_DispEngine_KeyDownTransform_" data-uid="Hi.Disp.DispEngine.KeyDownTransform*"></a>
|
||||
|
||||
<h3 id="Hi_Disp_DispEngine_KeyDownTransform_System_Int64_Hi_Native_key_table__transform_view_by_key_pressing_t_" data-uid="Hi.Disp.DispEngine.KeyDownTransform(System.Int64,Hi.Native.key_table__transform_view_by_key_pressing_t)">
|
||||
KeyDownTransform(long, key_table__transform_view_by_key_pressing_t)
|
||||
<h3 id="Hi_Disp_DispEngine_KeyDownTransform_System_String_Hi_Native_key_table__transform_view_by_key_pressing_t_" data-uid="Hi.Disp.DispEngine.KeyDownTransform(System.String,Hi.Native.key_table__transform_view_by_key_pressing_t)">
|
||||
KeyDownTransform(string, key_table__transform_view_by_key_pressing_t)
|
||||
|
||||
</h3>
|
||||
|
||||
@@ -1441,12 +1474,12 @@ Press <a class="xref" href="Hi.PanelModels.HiModifierKeys.html#Hi_PanelModels_Hi
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public void KeyDownTransform(long key, key_table__transform_view_by_key_pressing_t table)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public void KeyDownTransform(string key, key_table__transform_view_by_key_pressing_t table)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
|
||||
<dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The key that was pressed, typically a value from the <a class="xref" href="Hi.PanelModels.HiKey.html">HiKey</a> enumeration.</p>
|
||||
</dd>
|
||||
<dt><code>table</code> <a class="xref" href="Hi.Native.key_table__transform_view_by_key_pressing_t.html">key_table__transform_view_by_key_pressing_t</a></dt>
|
||||
@@ -1461,7 +1494,7 @@ Press <a class="xref" href="Hi.PanelModels.HiModifierKeys.html#Hi_PanelModels_Hi
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="Hi_Disp_DispEngine_KeyDownTransform_System_Int64_Hi_Native_key_table__transform_view_by_key_pressing_t__remarks">Remarks</h4>
|
||||
<h4 class="section" id="Hi_Disp_DispEngine_KeyDownTransform_System_String_Hi_Native_key_table__transform_view_by_key_pressing_t__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>This method is typically called from key down event handlers in the GUI implementation.</p>
|
||||
</div>
|
||||
|
||||
@@ -1470,8 +1503,8 @@ Press <a class="xref" href="Hi.PanelModels.HiModifierKeys.html#Hi_PanelModels_Hi
|
||||
|
||||
<a id="Hi_Disp_DispEngine_KeyUp_" data-uid="Hi.Disp.DispEngine.KeyUp*"></a>
|
||||
|
||||
<h3 id="Hi_Disp_DispEngine_KeyUp_System_Int64_" data-uid="Hi.Disp.DispEngine.KeyUp(System.Int64)">
|
||||
KeyUp(long)
|
||||
<h3 id="Hi_Disp_DispEngine_KeyUp_System_String_" data-uid="Hi.Disp.DispEngine.KeyUp(System.String)">
|
||||
KeyUp(string)
|
||||
|
||||
</h3>
|
||||
|
||||
@@ -1481,13 +1514,13 @@ This function is typically called in the GUI implementation for keyboard interac
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public void KeyUp(long key)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public void KeyUp(string key)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
|
||||
<dd><p>key</p>
|
||||
<dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>Key string (W3C KeyboardEvent.key value).</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user