<?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[tasten abfragen ohne 100% CPU auslastung + Mausrad?]]></title><description><![CDATA[<p>Hi,</p>
<p>ich habe zwei fragen. Wie kann ich stetig checken, ob der Benutzer eine Taste drückt ohne dass die Anwendung 50% der CPU-Auslastung benötigt.</p>
<p>nicht so:</p>
<pre><code class="language-cpp">int main()
{
// machwas

for(;;)
{
if(CheckeObTasteGedrückt...)
{
// ...
}
else
{
// ...
}
}

return 0;
}
</code></pre>
<p>2. Frage: Wie kann ich herausfinden, ob das Mausrad, falls so eins exestiert gerade &quot;gerollt&quot; wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/109524/tasten-abfragen-ohne-100-cpu-auslastung-mausrad</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 16:11:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/109524.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 May 2005 17:31:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to tasten abfragen ohne 100% CPU auslastung + Mausrad? on Tue, 10 May 2005 17:31:38 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich habe zwei fragen. Wie kann ich stetig checken, ob der Benutzer eine Taste drückt ohne dass die Anwendung 50% der CPU-Auslastung benötigt.</p>
<p>nicht so:</p>
<pre><code class="language-cpp">int main()
{
// machwas

for(;;)
{
if(CheckeObTasteGedrückt...)
{
// ...
}
else
{
// ...
}
}

return 0;
}
</code></pre>
<p>2. Frage: Wie kann ich herausfinden, ob das Mausrad, falls so eins exestiert gerade &quot;gerollt&quot; wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/785965</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/785965</guid><dc:creator><![CDATA[Frage123]]></dc:creator><pubDate>Tue, 10 May 2005 17:31:38 GMT</pubDate></item><item><title><![CDATA[Reply to tasten abfragen ohne 100% CPU auslastung + Mausrad? on Tue, 10 May 2005 17:39:15 GMT]]></title><description><![CDATA[<p>Hm, in der Konsole? Oder kannst du auch ein Fenster erstellen? Dann kannst du dir mal das hier anschauen:<br />
<a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/userinput/mouseinput/mouseinputreference/mouseinputmessages/wm_mousewheel.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/userinput/mouseinput/mouseinputreference/mouseinputmessages/wm_mousewheel.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/785970</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/785970</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 10 May 2005 17:39:15 GMT</pubDate></item><item><title><![CDATA[Reply to tasten abfragen ohne 100% CPU auslastung + Mausrad? on Tue, 10 May 2005 17:46:13 GMT]]></title><description><![CDATA[<p>naja, gut, Fenster wäre natürlcih perfekt, aber da habe ich das Problem, dass das Fenster immer im Vordergrund sein muss, um die Nachricht zu empfangen, was sich aber unmöglich einrichten lässt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/785981</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/785981</guid><dc:creator><![CDATA[frage123]]></dc:creator><pubDate>Tue, 10 May 2005 17:46:13 GMT</pubDate></item><item><title><![CDATA[Reply to tasten abfragen ohne 100% CPU auslastung + Mausrad? on Tue, 10 May 2005 17:54:15 GMT]]></title><description><![CDATA[<p>oder geht es, dass das Fenster die Nachricht trotzdem bekommt, obwohl es im Hintergrund ist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/785988</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/785988</guid><dc:creator><![CDATA[frage123]]></dc:creator><pubDate>Tue, 10 May 2005 17:54:15 GMT</pubDate></item><item><title><![CDATA[Reply to tasten abfragen ohne 100% CPU auslastung + Mausrad? on Tue, 10 May 2005 21:03:42 GMT]]></title><description><![CDATA[<p>Dazu brauchst du dann <a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/hooks.asp" rel="nofollow">Hooks</a>. Schau dazu auch mal in die FAQ - dort gibt es dazu afaik auch was <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/786162</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/786162</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 10 May 2005 21:03:42 GMT</pubDate></item><item><title><![CDATA[Reply to tasten abfragen ohne 100% CPU auslastung + Mausrad? on Tue, 10 May 2005 23:31:32 GMT]]></title><description><![CDATA[<p>MS Direct Input</p>
]]></description><link>https://www.c-plusplus.net/forum/post/786201</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/786201</guid><dc:creator><![CDATA[Zero01]]></dc:creator><pubDate>Tue, 10 May 2005 23:31:32 GMT</pubDate></item><item><title><![CDATA[Reply to tasten abfragen ohne 100% CPU auslastung + Mausrad? on Wed, 11 May 2005 06:59:20 GMT]]></title><description><![CDATA[<p>Aha, ok, das könnte klappen. Leider habe ich gleich schon wieder Probleme.</p>
<p>Ich erstelle meinen Hook so:</p>
<pre><code class="language-cpp">hHook = SetWindowsHookEx(WH_MOUSE, reinterpret_cast&lt;HOOKPROC&gt;(HookProc), hInst,0);
</code></pre>
<p>nur leider wird die Hook-Funktion nie aufgerufen, wenn ich meine Maus bewege.</p>
<p>2. Gibt es überhaupt möglichkeiten herauszufinden (in einer HookProc), ob das Mausrad bzw. eine Maustaste bewegt/gedrückt wurde. Eigentlich kann man doch nur die Mauszeigerposition herausfinden?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/786256</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/786256</guid><dc:creator><![CDATA[Frage123]]></dc:creator><pubDate>Wed, 11 May 2005 06:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to tasten abfragen ohne 100% CPU auslastung + Mausrad? on Wed, 11 May 2005 07:03:52 GMT]]></title><description><![CDATA[<p>Sorry, es heißt natürlich nicht WH_MOUSE sonder WH_MOUSE_LL</p>
]]></description><link>https://www.c-plusplus.net/forum/post/786258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/786258</guid><dc:creator><![CDATA[frage123]]></dc:creator><pubDate>Wed, 11 May 2005 07:03:52 GMT</pubDate></item><item><title><![CDATA[Reply to tasten abfragen ohne 100% CPU auslastung + Mausrad? on Wed, 11 May 2005 08:02:47 GMT]]></title><description><![CDATA[<p>Problem gelöst... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_savoring_food"
      title=":yum:"
      alt="😋"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/786301</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/786301</guid><dc:creator><![CDATA[frage123]]></dc:creator><pubDate>Wed, 11 May 2005 08:02:47 GMT</pubDate></item></channel></rss>