Joystick benutzen ohne DirectX?
-
ausgezeichnet! Danke sehr
-
eine frage hätte ich da noch:
Wohin kommen diese MM messages?also in welches WM?
-
*** schrieb:
also in welches WM?
in gar keinen WM-Zweig, es sind eigenständige Nachrichten.
MfG
-
und wie sieht dann das switch aus?
also
switch (???)

-
Na du packst einfach weitere cases in Deine normale WndProc rein...
Wo ist das Problem?
... case WM_CLOSE: PostQuitMessage(0); break; case MM_JOY1MOVE: break; case MM_JOY1BUTTONDOWN: break; case MM_JOY1BUTTONUP: break; ...
-
ah danke. sorry hab da was verpeilt.
also kurz: ich kann die Informationen wie z.B. XYZ per MM message bekommen oder per joyGetPos Funktion
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_joygetpos.asp
gell?
-
Ich nehme an, dass wird da genau so sein, wie bei Tastatur und Maus auch

-
flenders schrieb:
Ich nehme an, dass wird da genau so sein, wie bei Tastatur und Maus auch

also funzt der ganze mist genau wie getCursorPos und so:)
-
gibt's denn Probleme bei der Umsetzung, oder warum fragst du nach und probierst es nicht einfach aus

-
mit dem DJGPP kann man momentan keine Win32API programme schreiben, da ich noch in urlaub bin und auf meinem Laptop kein VC++ drauf habe, drum frage ich
-
MSDN schrieb:
MM_JOY1MOVE
fwButtons = wParam;
xPos = LOWORD(lParam);
yPos = HIWORD(lParam);Parameters:
fwButtons
Identifies the buttons that are pressed. It can be one or more of the following values:JOY_BUTTON1 First joystick button is pressed.
JOY_BUTTON2 Second joystick button is pressed.
JOY_BUTTON3 Third joystick button is pressed.
JOY_BUTTON4 Fourth joystick button is pressed.xPos
The x-coordinates of the joystick relative to the upper left corner of the client area.yPos
The y-coordinate of the joystick relative to the upper left corner of the client area.