指针事件& RFB协议中的DesktopSize
我有一个问题,我实际上正在我的软件中重新编码 RFB 协议以与 VNC 服务器通信,并且我想知道如何获取服务器桌面大小的大小。 我已经准备好测试 serverInit 消息中的framebuffer_width,但它并不代表桌面的卷轴大小,我不知道如何获取它?
我的第二个问题是向服务器发送 PointerEvent 消息。 为了移动鼠标,实际上在我的软件中,我将鼠标的 x 和 y 设置为位置 {0, 0},当我将其发送到 VNC 服务器时,它可以成功工作,但是当我将 5 添加到 x 位置时,它不会t 移动 5 像素,它移动得比我想要的大,我不明白为什么???你能帮我吗?
感谢您的回答!
I have a problem I'm actually recoding the RFB protocol in my software to comunicate with a VNC Server, and I want to know how to get the size of the server Desktop Size.
I have allready test the framebuffer_width inside of the serverInit message but it is not representing the reel size of desktop I don't know how to get it ?
My second question is to send a PointerEvent message to the server.
To move the mouse, actually in my software I set the x and y of the mouse to position {0, 0}, when I send this to the VNC server it works successfully, but when I add 5 to the x position it doesn't move 5 pixel it move bigger than what I want, I don't understand why???? can you help me please ?
Thanks for your answers !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你的两个问题都可能是你的客户端的扩展问题。
一些问题可能会帮助您回答您自己的问题(因为如果您想要明确的答案,您确实需要发布更多信息):
顺便说一句,我发现 官方 RFB 文档 有点缺乏,我认为这些链接更适合 RFB 参考:
Sounds like both of your problems could be a scaling issue in your client.
Some questions that might help you answer your own question (since you really need to post more information if you want a definitive answer):
BTW, I've found the official RFB documentation to be somewhat lacking and I think these links are better for RFB reference: