在Metro风格的游戏/应用程序中抑制(隐藏)和锁定鼠标光标 [英] Suppressing (hiding) and locking a Mouse Cursor in Metro-style games/apps

查看:92
本文介绍了在Metro风格的游戏/应用程序中抑制(隐藏)和锁定鼠标光标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的游戏中有一个在2D空间中飞行的化身(左/右,上/下)。

The game upon which I work has an avatar that flies around in 2D space (Left/Right, Up/Down).

化身有一个用于定向的标线瞄准(不精确瞄准)可以360度旋转。

The avatar has a reticle used for directional aiming (not precise aiming) that can be rotated circularly 360 degrees.

不幸的是,在屏幕上还有一个可见的鼠标光标,它可以根据用户输入自由移动而不需要任何用户输入完全是边界。

There, unfortunately, is also a visible mouse-cursor on the screen, which moves freely about per user-input without any boundaries at all.

这是一款动作游戏,所以最终用户经常移动鼠标以快速瞄准并点击进行拍摄。

It's an action game, so the end-user is moving the mouse around frequently to aim and clicking rapidly to shoot.

结果是最终用户可以&将意外地用鼠标光标意外地抓住屏幕的边缘并且还"拖动"。游戏画面,要么失去对游戏的关注,不小心暂停游戏,要么两者兼而有之。

The result of this is that the end-user can & will accidentally grip the edge of the screen with the mouse cursor unintentionally and also "drag" the game screen, either losing their focus on the game, accidentally pausing the game, or both.

我是否经常提到这种情况?

Did I mention this happens frequently?

什么需要是一种方法(任何以下或其他将做)

What is need is a way to (any of the below or other will do)

1)完全抑制鼠标光标(明显地及其影响屏幕边缘的能力)

1) suppress the mouse cursor entirely (visibly and its ability to affect the edges of the screen)

2)"锁定"将鼠标光标移动到头像的十字线(注意"头像用于经典游戏意义,而不是Xbox LIVE头像感")

2) "lock" the mouse cursor to the avatar's reticle (note that "avatar is used in the classical game sense, not the Xbox LIVE avatar sense)

3)上面的一些漂亮组合或建议我还没有想出自己?

3) some nifty combination of the above or a suggestion that I haven't come up with myself?

谢谢你的时间和时间。注意。

Thank you for your time & attention.

Taygee

推荐答案

我认为你应该修复相机,以便固定鼠标光标。
I think you should fix the camera, so that the mouse cursor will be fixed.


这篇关于在Metro风格的游戏/应用程序中抑制(隐藏)和锁定鼠标光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆