Project1
标题:
DLL鼠标的问题
[打印本页]
作者:
yangff
时间:
2008-2-18 19:31
标题:
DLL鼠标的问题
问一下,夏娜的不掉FPS鼠标的工作原理是什么。
或者VX用鼠标的德工作原理 [LINE]1,#dddddd[/LINE]
版务信息:本贴由楼主自主结贴~
作者:
越前リョーマ
时间:
2008-2-18 20:18
那个连连看里好像有个鼠标……
你去看看,
说不定会发现什么……
作者:
yangff
时间:
2008-2-18 21:18
我说工作原理
作者:
yangff
时间:
2008-2-18 22:03
DLL鼠标里
$mouse_init = Win32API.new(DLL,"_mouse_init","v","i")
$mouse_exi = Win32API.new(DLL,"_mouse_exit","v","v")
$mouse_get_pos = Win32API.new(DLL,"_mouse_get_pos","p","v")
$mouse_set_pos = Win32API.new(DLL,"_mouse_set_pos","ll","v")
$mouse_get_wheel = Win32API.new(DLL,"_mouse_get_wheel","v","i")
$mouse_is_over = Win32API.new(DLL,"_mouse_is_over","v","i")
$get_key_state = Win32API.new(DLL,"_get_key_state","i","i")
$key_down = Win32API.new(DLL,"_key_down","i","i")
$key_up = Win32API.new(DLL,"_key_up","i","i")
$mouse_update = Win32API.new(DLL,"_mouse_update","v","v")
$clear_queue = Win32API.new(DLL,"_clear_queue","v","v")
的作用
作者:
小星子
时间:
2008-2-22 19:36
就是通过api获取当前鼠标的坐标,然后找到当前的游戏窗体的位置,做个偏移 [LINE]1,#dddddd[/LINE]
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者:
link006007
时间:
2008-2-22 23:53
你用C写一个模仿Windows自带的画板程序就OK了.
基本上所有VC教程第一个完整程序就是这个
最好用Windows SDK规范来写. 这样到时做dll时可以直接copy相关代码
算法以后可以自己慢慢研究改进
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1