<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Keydown - Verzögerung]]></title><description><![CDATA[<p>Bonjour <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> !</p>
<p>Ich hab ein Problem mit den Tasten.<br />
Ich überprüfe einen Tastendruck mit FormKeyDown. Und da soll z.B. ein Shape nach rechts gehn.</p>
<pre><code class="language-cpp">if (Key == VK_RIGHT)
        {
         Shape1-&gt;Left += 1;
        }
</code></pre>
<p>Das Problem ist nur das sich das Shape erst nur 1 Pixel nach rechts bewegt, kurz aufhört und dann erst das shape sich dauerhaft nach rechts bewegt.</p>
<p>Danke schon im voraus!</p>
<p>Lito</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/153476/keydown-verzögerung</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 08:43:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/153476.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Jul 2006 13:39:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Keydown - Verzögerung on Mon, 17 Jul 2006 13:39:54 GMT]]></title><description><![CDATA[<p>Bonjour <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> !</p>
<p>Ich hab ein Problem mit den Tasten.<br />
Ich überprüfe einen Tastendruck mit FormKeyDown. Und da soll z.B. ein Shape nach rechts gehn.</p>
<pre><code class="language-cpp">if (Key == VK_RIGHT)
        {
         Shape1-&gt;Left += 1;
        }
</code></pre>
<p>Das Problem ist nur das sich das Shape erst nur 1 Pixel nach rechts bewegt, kurz aufhört und dann erst das shape sich dauerhaft nach rechts bewegt.</p>
<p>Danke schon im voraus!</p>
<p>Lito</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1099196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1099196</guid><dc:creator><![CDATA[Lito]]></dc:creator><pubDate>Mon, 17 Jul 2006 13:39:54 GMT</pubDate></item><item><title><![CDATA[Reply to Keydown - Verzögerung on Mon, 17 Jul 2006 14:08:35 GMT]]></title><description><![CDATA[<p>Das hängt mit der in der Systemsteuerung unter TASTATUR eingestellten Verzögerung zusammen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1099221</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1099221</guid><dc:creator><![CDATA[Christian2111]]></dc:creator><pubDate>Mon, 17 Jul 2006 14:08:35 GMT</pubDate></item><item><title><![CDATA[Reply to Keydown - Verzögerung on Mon, 17 Jul 2006 14:15:00 GMT]]></title><description><![CDATA[<p>Nimm doch einen Timer.</p>
<p>Wenn die Taste gedrückt ist, aktivierst du den Timer<br />
und wenn die Taste losgelassen wird, deaktivierst du ihn.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1099232</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1099232</guid><dc:creator><![CDATA[GCoder]]></dc:creator><pubDate>Mon, 17 Jul 2006 14:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to Keydown - Verzögerung on Mon, 17 Jul 2006 14:23:15 GMT]]></title><description><![CDATA[<p>wie kann ich denn abfragen ob die taste <em>nicht</em> gedrückt worden ist?</p>
<p>Thx Lito</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1099239</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1099239</guid><dc:creator><![CDATA[Lito]]></dc:creator><pubDate>Mon, 17 Jul 2006 14:23:15 GMT</pubDate></item><item><title><![CDATA[Reply to Keydown - Verzögerung on Mon, 17 Jul 2006 14:26:39 GMT]]></title><description><![CDATA[<p>OnKeyDown und OnKeyUp</p>
<p>Im OnTimer Ereignis erfolgt dann das Verschieben</p>
<p>OnKEyDown aktiviert den Timer<br />
OnKeyUP deaktiviert ihn</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1099242</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1099242</guid><dc:creator><![CDATA[Christian2111]]></dc:creator><pubDate>Mon, 17 Jul 2006 14:26:39 GMT</pubDate></item><item><title><![CDATA[Reply to Keydown - Verzögerung on Mon, 17 Jul 2006 14:29:38 GMT]]></title><description><![CDATA[<p>AUUUUja... das KeyUp hab ich garnicht gesehen, sry.</p>
<p>Vielen Dank funkt jetzt!</p>
<p>Lito</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1099245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1099245</guid><dc:creator><![CDATA[Lito]]></dc:creator><pubDate>Mon, 17 Jul 2006 14:29:38 GMT</pubDate></item><item><title><![CDATA[Reply to Keydown - Verzögerung on Mon, 17 Jul 2006 14:29:48 GMT]]></title><description><![CDATA[<p>So:</p>
<pre><code class="language-cpp">bool RightDown;

void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
if(RightDown)
           {
            Shape1-&gt;Left += 1;
           }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormKeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
if (Key == VK_RIGHT)RightDown=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormKeyUp(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
if (Key == VK_RIGHT)RightDown=false;
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1099246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1099246</guid><dc:creator><![CDATA[GCoder]]></dc:creator><pubDate>Mon, 17 Jul 2006 14:29:48 GMT</pubDate></item><item><title><![CDATA[Reply to Keydown - Verzögerung on Mon, 17 Jul 2006 14:32:43 GMT]]></title><description><![CDATA[<p>Naja, wie gesagt würde ich den Timer in den Ereignissen ein- und ausschalten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1099250</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1099250</guid><dc:creator><![CDATA[Christian2111]]></dc:creator><pubDate>Mon, 17 Jul 2006 14:32:43 GMT</pubDate></item></channel></rss>