Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做我的小项目。我必须在 C 中创建一个图像编辑器。为此我想处理鼠标。据我所知,有两种处理鼠标的方法,即请求模式和事件模式。
在过去的几天里,我学习了请求模式,但是我在使用请求模式执行一些事情时遇到了困难,所以我决定学习第二种方法,即事件模式。但不幸的是我找不到合适的资源。如果你能给我一些关于事件模式方法的例子和解释,你会非常好。
看看这个网站
http://www3.telus.net/alexander_russell/course/introduction.htm
它是一个dos游戏编程站点
第4章有鼠标部分