<feed xmlns='http://www.w3.org/2005/Atom'>
<title>yasl.git/src/common/input.c, branch main</title>
<subtitle>[no description]</subtitle>
<id>https://git.wsap.dev/yasl.git/atom?h=main</id>
<link rel='self' href='https://git.wsap.dev/yasl.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.wsap.dev/yasl.git/'/>
<updated>2026-10-13T20:41:31+00:00</updated>
<entry>
<title>Simplify the public event and CPU API</title>
<updated>2026-10-13T20:41:31+00:00</updated>
<author>
<name>Berke Güzel</name>
<email>wenekar1@gmail.com</email>
</author>
<published>2026-10-13T20:41:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.wsap.dev/yasl.git/commit/?id=76073fe5fad8799e5850805f2f090af2cb62c741'/>
<id>urn:sha1:76073fe5fad8799e5850805f2f090af2cb62c741</id>
<content type='text'>
Applications now need far less ceremony: hello.c is a 20-line loop that
handles REFRESH, CLOSE and QUIT and draws into the surface's own pixels.

- Fold GEOMETRY, STATE and FOCUS into one WINDOW event carrying size,
  scale and state; unchanged values send nothing.
- Guarantee REFRESH once a window has a size and after every resize,
  never at size zero.
- Merge DROP_HOVER into DROP with over/leave/data actions and give drag
  and drop actions enums.
- Keep event strings valid until the next wait and drop
  yasl_event_release; empty or failed waits report NONE.
- Replace copy-in presentation with a lent pixel buffer:
  yasl_cpu_pixels and yasl_cpu_present.
- Remove yasl_poll_event, yasl_cpu_read_pixels, unused event fields and
  comments that restated names.
- Wayland: resize floating windows in request_size instead of reporting
  it unsupported, and stop marking new GPU surfaces as Vulkan so
  yasl_vulkan_create_surface no longer fails with NATIVE_WINDOW_IN_USE.

Also includes the in-progress public API refactor that was uncommitted
in the tree (removal of the app/loop layer, new surface, GL and Vulkan
entry points).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>public api refactor</title>
<updated>2026-10-13T18:23:03+00:00</updated>
<author>
<name>Berke Güzel</name>
<email>wenekar1@gmail.com</email>
</author>
<published>2026-10-13T18:23:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.wsap.dev/yasl.git/commit/?id=dd1775a9927922c14f8679ccbc4d3ca8d5917e20'/>
<id>urn:sha1:dd1775a9927922c14f8679ccbc4d3ca8d5917e20</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Report held pointer buttons on every pointer event</title>
<updated>2026-10-13T13:57:59+00:00</updated>
<author>
<name>Berke Güzel</name>
<email>wenekar1@gmail.com</email>
</author>
<published>2026-10-13T13:57:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.wsap.dev/yasl.git/commit/?id=cbd1fc7ee6dced7ad6beecd5b9ad56a7f977f0c4'/>
<id>urn:sha1:cbd1fc7ee6dced7ad6beecd5b9ad56a7f977f0c4</id>
<content type='text'>
Pointer events set button only on press and release, so wsap_term tracked
held buttons itself to tell a drag from a hover.

yasl_pointer_event.buttons now holds a YASL_BUTTON_BIT() mask of the buttons
held after each event. The common input queue tracks it from the DOWN and
UP events it queues, and clears it on INPUT_RESET and on allocation
failure. Wayland also clears it on leave, since the compositor sends leave
during a press only when it takes the pointer and no release follows. X11
and Cocoa keep it, because they deliver motion and the release to the
pressed window after leave.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Unify core and runner events into struct yasl_event</title>
<updated>2026-10-13T12:41:39+00:00</updated>
<author>
<name>Berke Güzel</name>
<email>wenekar1@gmail.com</email>
</author>
<published>2026-10-13T12:41:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.wsap.dev/yasl.git/commit/?id=537b2d768b31deb0f95c5122e0d562e4406ae9a0'/>
<id>urn:sha1:537b2d768b31deb0f95c5122e0d562e4406ae9a0</id>
<content type='text'>
The core input queue and the yasl_run() runner each had their own event
type, and the runner translated one into the other. Both now share
struct yasl_event in &lt;yasl/yasl.h&gt;: yasl_surface_poll_event() returns the
same events the app event callback receives, so the runner forwards them
unchanged.

Pointer input becomes POINTER_DOWN/UP/MOTION/SCROLL/LEAVE with a named
yasl_pointer_button and a motion delta computed in the input queue. TEXT,
PASTE and DROP share one text payload, scale changes fold into
WINDOW_RESIZE, and every event carries a monotonic time_ns.
yasl_surface_set_mouse_mode() is replaced by
yasl_surface_set_pointer_mode(); no backend implements relative mode yet.

The export check now only counts YASL_API declarations, so function
pointer fields returning enum yasl_app_result are not mistaken for
exports.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>perf: unify platform-independent state, branchless queue masking and native handle caching</title>
<updated>2026-10-12T12:14:41+00:00</updated>
<author>
<name>Berke Güzel</name>
<email>wenekar1@gmail.com</email>
</author>
<published>2026-10-12T12:14:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.wsap.dev/yasl.git/commit/?id=4145406fae437dce2f0af6e078e35566634f2c19'/>
<id>urn:sha1:4145406fae437dce2f0af6e078e35566634f2c19</id>
<content type='text'>
</content>
</entry>
<entry>
<title>perf: optimize hot-path loops, data structures, and cache locality</title>
<updated>2026-10-12T11:27:51+00:00</updated>
<author>
<name>Berke Güzel</name>
<email>wenekar1@gmail.com</email>
</author>
<published>2026-10-12T11:27:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.wsap.dev/yasl.git/commit/?id=9ed89c17dee752154c36d71cae93d20cccfc71ef'/>
<id>urn:sha1:9ed89c17dee752154c36d71cae93d20cccfc71ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>missing impls and hardening</title>
<updated>2026-10-11T21:09:38+00:00</updated>
<author>
<name>Berke Güzel</name>
<email>wenekar1@gmail.com</email>
</author>
<published>2026-10-11T21:09:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.wsap.dev/yasl.git/commit/?id=624d1371304a5ae4b3429ad5e4267aac7cd03dfd'/>
<id>urn:sha1:624d1371304a5ae4b3429ad5e4267aac7cd03dfd</id>
<content type='text'>
</content>
</entry>
</feed>
