mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
add x11 type support
This commit is contained in:
parent
5005c38b4f
commit
37dfd14681
@ -212,6 +212,10 @@ void toggleUnicode(UniChar ch, const bool down)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(USE_X11)
|
||||||
|
#define toggleUniKey(c, down) toggleKey(c, down, MOD_NONE)
|
||||||
|
#endif
|
||||||
|
|
||||||
// unicode type
|
// unicode type
|
||||||
void unicodeType(const unsigned value){
|
void unicodeType(const unsigned value){
|
||||||
#if defined(IS_MACOSX)
|
#if defined(IS_MACOSX)
|
||||||
@ -231,6 +235,9 @@ void unicodeType(const unsigned value){
|
|||||||
ip.ki.dwFlags = KEYEVENTF_UNICODE; // KEYEVENTF_KEYUP for key release.
|
ip.ki.dwFlags = KEYEVENTF_UNICODE; // KEYEVENTF_KEYUP for key release.
|
||||||
|
|
||||||
SendInput(1, &ip, sizeof(INPUT));
|
SendInput(1, &ip, sizeof(INPUT));
|
||||||
|
#elif defined(USE_X11)
|
||||||
|
toggleUniKey(value, true);
|
||||||
|
toggleUniKey(value, false);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user