Adds support for confining the mouse pointer to a Java AWT or Swing window, useful for video games that use mouse look or edge scrolling.
Usage:
0. Download release/jpointerlock.jar and lib/native-library-loader.jar from the code section, and add them to your build path/classpath.
1. Call PointerLockLoader.init() as early as possible on the AWT EDT to load the native library.
2. Call PointerLock.setPointerLock(Window, boolean) on the AWT EDT when you want to lock or unlock the pointer.
This library and the included native library loader are released under the Unlicense and come with absolutely no warranty. See https://unlicense.org/ for more information.
Features
- Windows support using ClipCursor
- Linux support using XGrabPointer
- Binaries for x86 and amd64 architectures
- Very simple API
- Public domain
License
Public DomainFollow JPointerLock
Other Useful Business Software
Empower Your Contact Center with Human-Like AI Conversations
Enterprise Bot, based in Switzerland, is a pioneer in Conversational AI, Process Automation, and Generative AI. With the trust of esteemed enterprise giants across industries like Generali, SIX, SBB, DHL, and SWICA, Enterprise Bot is revolutionizing both customer and employee experiences. Through its advanced integration with Large Language Models (LLM) such as ChatGPT and Llama 2, and its unique patent-pending DocBrain technology, the company delivers unparalleled personalization, active engagement, and omnichannel solutions across platforms like email, voice, and chat. Furthermore, Enterprise Bot integrates with existing core systems, such as SAP, CRMs, Confluence and more, and with its proprietary middleware, Blitzico, enables the AI to not only respond to queries but also take action to resolve them. This dedication to innovation in four main use case areas, Customer Support, Sales and Marketing, Knowledge Management and Digital Coworker, elevates both CX and employee productivity.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of JPointerLock!