Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Problem mit DirectInput und Buffered Mouse Data (https://www.delphipraxis.net/54515-problem-mit-directinput-und-buffered-mouse-data.html)

JamesTKirk 5. Okt 2005 19:14


Problem mit DirectInput und Buffered Mouse Data
 
Hi Leutz!

Ich hab ein Problem beim gebufferden Abfragen der Maus mit DirectInput... Sobald ich DIMouse.acquire in folgendem Code ausführe, reagiert die Anwendung komplett nicht mehr:

Delphi-Quellcode:
{Variablen:}
  diMouse:idirectinputdevice8;
  MouseDOD:array[0..15] of tdideviceobjectdata;
  elements:cardinal;{=16}

if dimouse.GetDeviceData(sizeof(tdimousestate),@mousedod,@elements,0)<>di_ok then
 dimouse.Acquire;
DiMouse wurde ordnungsgemäß initialisiert und die Immediate Abfrage funktioniert ohne Probleme...
Weiß jemand, was ich falsch mache?

JamesTKirk 8. Okt 2005 10:32

Re: Problem mit DirectInput und Buffered Mouse Data
 
*push* Ich wäre immernoch an einer Lösung interessiert! :?


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:33 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz