mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-05 00:03:55 +00:00
update some c name and fmt code
This commit is contained in:
parent
4af3883371
commit
df79f9793b
@ -53,9 +53,9 @@ void dispatch_proc(iohook_event * const event) {
|
|||||||
snprintf(buffer + length, sizeof(buffer) - length,
|
snprintf(buffer + length, sizeof(buffer) - length,
|
||||||
",keycode=%u,rawcode=0x%X",
|
",keycode=%u,rawcode=0x%X",
|
||||||
event->data.keyboard.keycode, event->data.keyboard.rawcode);
|
event->data.keyboard.keycode, event->data.keyboard.rawcode);
|
||||||
int akeycode = (uint16_t) event->data.keyboard.keycode;
|
int akeyCode = (uint16_t) event->data.keyboard.keycode;
|
||||||
// printf("atoi(str)---%d\n", atoi(cevent));
|
// printf("atoi(str)---%d\n", atoi(cevent));
|
||||||
if (akeycode == atoi(cevent)){
|
if (akeyCode == atoi(cevent)){
|
||||||
int stopEvent = stop_event();
|
int stopEvent = stop_event();
|
||||||
// printf("%d\n", stopEvent);
|
// printf("%d\n", stopEvent);
|
||||||
cstatus = 0;
|
cstatus = 0;
|
||||||
|
@ -113,7 +113,7 @@ int mouse_toggle(char* d, MMMouseButton button){
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int set_mouseDelay(size_t val){
|
int set_mouse_delay(size_t val){
|
||||||
// int val = 10;
|
// int val = 10;
|
||||||
mouseDelay = val;
|
mouseDelay = val;
|
||||||
|
|
||||||
|
@ -518,7 +518,7 @@ func MouseToggle(args ...interface{}) {
|
|||||||
// SetMouseDelay set mouse delay
|
// SetMouseDelay set mouse delay
|
||||||
func SetMouseDelay(x int) {
|
func SetMouseDelay(x int) {
|
||||||
cx := C.size_t(x)
|
cx := C.size_t(x)
|
||||||
C.set_mouseDelay(cx)
|
C.set_mouse_delay(cx)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ScrollMouse scroll the mouse
|
// ScrollMouse scroll the mouse
|
||||||
|
Loading…
Reference in New Issue
Block a user