frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Macpad – turn your game controller into a Mac mouse and keyboard

1•henitchobisa•1h ago

  I cloud game on my Mac plugged into an external display — controller in
  hand, couch mode, trackpad halfway across the room. Which works fine until
  something interrupts: a Slack ping, a browser tab I need to click, a
  password field.

  Every interruption used to mean pausing, standing up, grabbing the trackpad,
   doing the one-second task, putting the trackpad back, rebinding my hands on
   the controller, and finding my place in the game. The interruption was
  always an order of magnitude longer than the thing it actually interrupted.

  Macpad collapses it into one button. Press Home/PS → the left stick becomes
  my cursor, A is left click, and there's an on-screen keyboard an L1+R1 chord
   away if I need to type. Do the thing. Press Home again → back to the game,
  zero context lost.

  That's the whole pitch. Not a trackpad replacement for its own sake — a fast
   context switch between "I'm gaming" and "I'm on my Mac", without standing
  up.

  The interesting engineering bit, if you're into that: Apple's driver
  silently hides the PS button from the GameController framework on macOS.
  GCController.physicalInputProfile lists "Button Home" but its
  pressedChangedHandler never fires — the OS swallows the event for its Game
  Center overlay. But the button isn't gone. It's right there in the raw HID
  input report.

  Chromium's WebHID does exactly this: opens the device with
  IOHIDDeviceRegisterInputReportCallback, reads the full 64-byte input report,
   and masks the button bit itself. So I did the same — byte 6 bit 0 on DS4
  USB, byte 9 bit 0 on DualSense Bluetooth, etc. Same trick unlocks the
  Create/Share button and the touchpad click, which Apple's driver also drops
  on the floor.

  Other rabbit holes that were way more interesting than I expected:

  - Left clicks turning into right clicks. Posting ⌃Tab via CGEvent leaks the
  control flag into macOS's combined-session modifier state. The next
  synthetic mouse click inherits ctrl, and on macOS ctrl+click == right-click.
   Fix: explicitly reset flags = [] on mouse events, let keyboard events keep
  inheriting (otherwise you break system shortcuts).
  - L1+R1 chord for the keyboard, with a 150ms window. Quick-tapped shoulders
  must still fire their normal action; the chord only wins if both arrive
  inside the window. Deferred-DispatchWorkItem + cancel-on-opposite-arrival.
  - Haptics that actually feel like a mechanical click = a sharp transient
  layered over a 40ms continuous tail. One event alone feels like a flat buzz.
   Two layered events feel like a keycap.

  Honest disclosure: a lot of this was vibe-coded with Claude. I drove, Claude
   did plenty of the typing. I'm calling that out because the interesting
  thing isn't that I hand-wrote every line — it's that the debugging stories
  above (the PS button, the modifier leak, the chord window timing) are all
  real problems we actually hit, diagnosed from logs, and fixed. The AI was a
  good typist; the system design, the "wait, why does this work in Chromium
  but not us", the hypothesis-forming — still the work.

  Works on macOS 14+, Liquid Glass UI on Tahoe, Swift Package Manager, no
  dependencies. MIT.

  Repo + full bindings + architecture notes:
  https://github.com/henit-chobisa/macpad

Show HN: Canopy – A2UI implemenation in Go targeted towards macOS/AkkPit

1•artpar•17s ago•0 comments

Local LLM for Private Companies

1•ahendest•3m ago•0 comments

Cutting Costs, Not Corners by moving out of big tech

https://knuthellan.com/cutting-costs-not-corners-how-we-migrated-our-ai-document-pipeline-from-aws
1•khellan•5m ago•0 comments

The semantic layer is for humans, not machines

https://getcassis.com/blog/the-semantic-layer-is-for-humans-not-machines
2•matthieu_bl•6m ago•0 comments

Externalization in LLM Agents: Unified Review of Memory and Harness Engineering

https://arxiv.org/abs/2604.08224
2•MemTensor•7m ago•0 comments

GBC/GBA Emulator in Rust

https://github.com/Sessa93/gbrust/tree/main
1•andre9317•9m ago•1 comments

Show HN: Floors – DJ mix discovery built around a music knowledge graph

https://floors.music/
1•mattbyrom•11m ago•0 comments

I got over my AI skepticism in data engineering

https://getbruin.com/blog/ai-skepticism-in-data-engineering/
3•arsalann•11m ago•0 comments

Share browser recordings on Cloudflare Pages from the command line

1•keepamovin•11m ago•0 comments

Do you want the US to "win" AI?

https://geohot.github.io//blog/jekyll/update/2026/04/23/us-win-ai.html
2•mefengl•14m ago•0 comments

Base Mac Mini Sold Out from Apple Online Store

https://www.macrumors.com/2026/04/22/base-mac-mini-sold-out-from-apple-online-store/
2•7777777phil•15m ago•0 comments

I LOVE YOU

https://en.wikipedia.org/wiki/ILOVEYOU
1•keepamovin•17m ago•0 comments

Cortex Auth – Rust secrets vault for AI agents (exec-based injection)

https://github.com/davideuler/cortex-auth
1•davideuler•17m ago•1 comments

Trust Me, I'm a Shortcut

https://www.wietzebeukema.nl/blog/trust-me-im-a-shortcut
3•wietze•26m ago•0 comments

Bitwuzla: Satisfiability Modulo Theories (SMT) Solver

https://github.com/bitwuzla/bitwuzla
1•tosh•28m ago•0 comments

"Bot or Human?" Is the Wrong Question for the Modern Web

https://blog.cloudflare.com/past-bots-and-humans/
1•emot•29m ago•0 comments

Image Generators Are Generalist Vision Learners

https://arxiv.org/abs/2604.20329
1•mohsen1•31m ago•0 comments

What you can do in a decade

https://twitter.com/swyx/status/2047217611880984935
1•tosh•32m ago•0 comments

AI and Teaching

https://eiexchange.com/content/ai-and-teaching-the-brave-new-world
1•walterbell•34m ago•0 comments

Show HN: We built an OCR server that can process 270 dense images/s on a 5090

https://github.com/aiptimizer/TurboOCR
4•pfdomizer•34m ago•1 comments

Writing a C Compiler, in Zig

https://ar-ms.me/thoughts/c-compiler-1-zig/
2•tosh•34m ago•0 comments

Subscription bombing attacks: patterns, dark web services, and mitigations

https://cacm.acm.org/practice/subscription-bombing-email-under-attack/
1•gannimo•35m ago•0 comments

Show HN: AI Applyd – score, rewrite, auto-apply via cloud browser

https://aiapplyd.com/
1•sneefle•35m ago•0 comments

A new logical model for artificial gravity cores: from pest control to railguns

https://gist.github.com/ryouta19931007
1•hamutarou•39m ago•0 comments

Programming as Theory Building – Peter Naur

https://gist.github.com/onlurking/fc5c81d18cfce9ff81bc968a7f342fb1
1•jonnonz•39m ago•0 comments

FIU Student Arrested After Joking About Netanyahu on WhatsApp

https://www.youtube.com/watch?v=o1Zsb1IijYY
11•enaaem•43m ago•0 comments

Meta layoff wave impacting 8000 jobs

https://www.usatoday.com/videos/news/2026/04/20/meta-layoffs-impacting-8000-employees/89697461007/
2•tcp_handshaker•46m ago•1 comments

Is Starlink a Secret Radar Constellation? [video]

https://www.youtube.com/watch?v=jbp3kdJZ1_A
3•msuniverse2026•52m ago•0 comments

Show HN: Nova by civai, a platform for managed AI agents

https://nova.civai.co/
2•usecodenaija•54m ago•0 comments

RFK Jr. Defends Trump's Mathematically Impossible Drug Discount Claims

https://www.nytimes.com/2026/04/22/us/politics/rfk-jr-trump-impossible-drug-discounts.html
3•tcp_handshaker•55m ago•1 comments