aluspointer is an input simulation library written in c++ based on xcb library. It's originally made for a dependency of my other project Mobile Cursor, and currently, it only supports linux platform.
- Basic mouse and keyboard tasks (clicking, typing, etc.)
- Supports UTF-8 characters typing
- Window manipulation (focus & capture image)
- xcb, xcb-xtest, and xcb-keysyms
- tinyutf8 (https://github.com/DuffsDevice/tiny-utf8)
- cairo
#include <aluspointer.h>
int main()
{
// Initialize before use
aluspointer::initialize();
// Move the mouse pointer in (x, y) relative to its position
aluspointer::move_mouse(3, 4);
// Perform a left click
aluspointer::click(MOUSE_LEFT);
// Type UTF-8 string
aluspointer::type_string(u8"you cant live without emojis.. 🔥🔥💯💯😂");
// Tap ASCII character
aluspointer::tap_key(15); // ASCII code for return
return 0;
}
- Adds window management support. Such as activating, minimizing, capturing, and other actions
- Windows and Mac support