读书人

WM_INPUT 是在windows 编程里头使用

发布时间: 2013-11-14 22:02:51 作者: rapoo

WM_INPUT 是在windows 编程里面使用?
WM_INPUT 是在windows 编程里面使用?

我在这儿看到: http://msdn.microsoft.com/en-us/library/windows/desktop/ms645543(v=vs.85).aspx

说是可以识别两个鼠标:
An application can distinguish the source of the input even if it is from the same type of device. For example, two mouse devices.

但是这可以在opengl 里面使用? 还是必须在vc++ 里面才可以?
[解决办法]
OpenGL是跨平台的,没有WM_INPUT这么变态的命名。

引用:
WM_INPUT 是在windows 编程里面使用?

我在这儿看到: http://msdn.microsoft.com/en-us/library/windows/desktop/ms645543(v=vs.85).aspx

说是可以识别两个鼠标:
An application can distinguish the source of the input even if it is from the same type of device. For example, two mouse devices.

但是这可以在opengl 里面使用? 还是必须在vc++ 里面才可以?

[解决办法]
WM_INPUT只能在windows平台上使用。
[解决办法]
WM_INPUT只能响应GUI,所以你应该在GUI上嵌入OpenGL。

引用:
Quote: 引用:

OpenGL是跨平台的,没有WM_INPUT这么变态的命名。

Quote: 引用:

WM_INPUT 是在windows 编程里面使用?

我在这儿看到: http://msdn.microsoft.com/en-us/library/windows/desktop/ms645543(v=vs.85).aspx

说是可以识别两个鼠标:
An application can distinguish the source of the input even if it is from the same type of device. For example, two mouse devices.

但是这可以在opengl 里面使用? 还是必须在vc++ 里面才可以?


多谢, 我就是在windows 平台上使用. 那这样可以方便把WM_INPUT集成在 opengl程序里面吗?

[解决办法]
GUI与MFC不是一回事。前者泛指图形用户界面,你用OpenGL当然有图形界面了;后者是实现前者的一种做法。
[解决办法]
搜网络教程“学OpenGL编3D游戏”。

读书人网 >C++

热点推荐