Advertisement

Keyboard and Mouse

Started by March 19, 2003 02:34 PM
4 comments, last by Rubes 21 years, 8 months ago
Can you use anything else than DirectInput to integrate DirectInput? And is OpenGL just graphics, or does it have sound stuff like DirectX?
If your asking "Can I use any other input besides DirectInput" then yes, there are many options(incomplete list):

SDL
GDI
MFC
ASyncKeydown(from Lamoth)

OpenGL does not have an input library. OpenGL is just graphics.
~~~~~Screaming Statue Software. | OpenGL FontLibWhy does Data talk to the computer? Surely he's Wi-Fi enabled... - phaseburn
Advertisement
Whats ASyncKeyDown? Is it like DirectInput? And do I need to know OpenGL to use SDL?

[edited by - Rubes on March 19, 2003 3:54:54 PM]
ASyncKeyDown is Andre LaMoth''s Tricks of the Windows blah blah blah begginer''s way of doign keyboard input. The book is a good read at borders...

SDL was originally a way for Loki to port windows programs to unix. I''ve never used it, so I cannot comment on it. You do not have to use OpenGL with it, it has its own 2d Renders...
~~~~~Screaming Statue Software. | OpenGL FontLibWhy does Data talk to the computer? Surely he's Wi-Fi enabled... - phaseburn
Alright, thx. I''m gonna learn that before DX.
Likewise, GDI does not have input; it is a graphics interface. And the input systems of MFC and SDL are based on the Win32 methods of input, namely the GetAsyncKeyState function and the WM_CHAR and WM_KEYx (e.g. WM_KEYDOWN) families of messages.

edit The above was in reference to the keyboard. GetCursorPos is one function for working with the mouse (for others check your local MSDN), and for immediate data, the WM_MOUSEMOVE function works nicely if you don't mind some lag. For other types of input devices, you'll probably need DirectInput if you don't want to write your own drivers, though there is a limited joystick API included in Win32.

Peace,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links


[edited by - zealouselixir on March 19, 2003 6:12:29 PM]

[twitter]warrenm[/twitter]

This topic is closed to new replies.

Advertisement