Skip to content

XCB wrapper to simulate keyboard and mouse input.

License

Notifications You must be signed in to change notification settings

azmy60/aluspointer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aluspointer

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.

Features

  • Basic mouse and keyboard tasks (clicking, typing, etc.)
  • Supports UTF-8 characters typing
  • Window manipulation (focus & capture image)

Dependencies

Usage

#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;
}

TODO

  • Adds window management support. Such as activating, minimizing, capturing, and other actions
  • Windows and Mac support

About

XCB wrapper to simulate keyboard and mouse input.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages