Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by XEvent event
How to Handle Clipboard-Copy-Paste (Low-Level)
Clipboard Paste X11 (init atoms, convert section, get data) Win32 (open clipboard, get data, convert data, close clipboard) Cocoa (set datatypes, get pasteboard, get data, convert data) Clipboard Copy X11 (init atoms, convert section, handle request, send data) Win32 (setup global object, convert data, open clipboard, convert string, send data, close clipboard) Cocoa (create datatype array, declare types, convert string, send data) To handle the clipboard, you must create some Atoms via...
RGFW Under the Hood: Clipboard Copy/Paste
Introduction Reading and writing to the clipboard using low-level APIs can be tricky. There are a bunch of steps required. This tutorial simplifies the process so you can easily read and write to the clipboard using the low-level APIs. The tutorial is based on RGFW's source code and its usage of the low-level APIs. Note: the cocoa code is written in Pure-C.
RGFW Under the Hood: Raw Mouse Input and Mouse Locking
RGFW is a lightweight single-header windowing library, its source code can be found here. This tutorial is based on its source code. When you create an application that locks the cursor, such as a game with a first-person camera, it's important to be able to disable the cursor. This means locking the cursor in the middle of the screen and getting raw input. The only alternative to this method would be a hack that pulls the mouse back to the center of the window when it moves.
RGFW Under the Hood: Raw Mouse Input and Mouse Locking
A tutorial that explains how to lock the cursor and enable raw mouse input for X11, WinAPI, Cocoa, and Emscripten. Introduction RGFW is a lightweight single-header windowing library, its source code can be found here. This tutorial is based on its source code. When you create an application that locks the cursor, such as a game with a first-person camera, it's important to be able to disable the cursor. This means locking the cursor in the middle of the screen and getting raw input.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with XEvent
Contact XEvent, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack