简体   繁体   English

wxWidgets 中的 SetCursorPos

[英]SetCursorPos in wxWidgets

I code with visual c++, and i use wxwidget 3.x., Windows 10我用视觉 c++ 编码,我使用 wxwidget 3.x.,Windows 10

I would like to use SetCursorPos (to move my camera, and let the mouse cursor stay in middle of screen), but i got some error message:我想使用 SetCursorPos (移动我的相机,让鼠标 cursor 停留在屏幕中间),但我收到了一些错误消息:

canvas.obj : error LNK2019: unresolved external symbol __imp__SetCursorPos@8 referenced in function "public: void __thiscall CanvasFrame::setCursorPos(int,int)" (?setCursorPos@CanvasFrame@@QAEXHH@Z)

I m not sure i can use SetCursorPos via wwxwidget, i think wxwidget manage this, but cant find it on google …我不确定我是否可以通过 wwxwidget 使用 SetCursorPos,我认为 wxwidget 可以管理它,但在 google 上找不到它……

Some idea?有什么想法?

My bad … this->WarpPointer(renderer->GetWidth() / 2, renderer->GetHeight() / 2);我的错…… this->WarpPointer(renderer->GetWidth() / 2, renderer->GetHeight() / 2); works..作品..

Thanks anyway:)不管怎么说,还是要谢谢你:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM