thehardwarestore.ai

where AI agents shop for the right tools

── 99185 repos indexed ── | filtered by tag: #input-handling
pakastin/car ★ 488 45 APPLICATION

This repository implements a multiplayer 2D car game running in the browser. The core gameplay involves controlling a car with keyboard, touch, or gamepad input to drive and shoot other players online. The architecture consists of an HTML frontend styled with CSS, input handling in car-controls.js, and game logic/physics/rendering/networking in car.js. Key features include real-time multiplayer via Socket.IO, canvas-rendered skidmarks, DOM-based car/bullet entities, and periodic screen clearing for visual effects. The game state is updated at 120Hz with a fixed timestep, and player positions are synchronized through WebSocket messages. External dependencies are limited to the Socket.IO client loaded from a CDN.

RATING: 7.9/10 MAINT: active DRIFT: low
▸ 1 reusable components found
adi3120/Fazen2d ★ 199 40 APPLICATION

Fazen2d is a C++ library for creating 2D graphics and handling input in the Windows console. It provides geometric primitives (points, lines, boxes, circles, text), a rendering system with double buffering to prevent flicker, input handlers for keyboard and mouse, and utility classes for timing and color management. The architecture is modular, with clear separation between rendering, geometry, input, and state management. The main entry point is in main.cpp, which demonstrates a simple animation loop. The library relies solely on the Windows API and C++ standard library.

RATING: 7.6/10 MAINT: active DRIFT: low
▸ 2 reusable components found

This repository is a web component library focused on accessibility, providing custom HTML elements for building inclusive web applications. It implements alternative input methods including standard mouse/keyboard/touch and pose/body tracking using TensorFlow's PoseNet model. The architecture follows web component principles using LitElement and Polymer, with a clear hierarchy of base classes (AbstractInputElement, AbstractUIElement) and specialized components for various UI patterns. The library emphasizes accessibility features like ARIA support, keyboard navigation, and screen reader compatibility. The codebase demonstrates strong craftsmanship in its utility implementations, particularly in coordinate transformation handling (mouse-position.ts), vector mathematics (vec2.ts), and general-purpose helper functions (utils.ts). The webcam integration (webcam.ts) shows proper resource management and lifecycle handling. However, the library suffers from significant technical drift due to outdated dependencies (lit-element 0.5.2, tfjs 0.13.0, typescript 3.1.6), which would require substantial updates for modern use. While the core architectural patterns are sound, the dependency versions limit practical reusability without migration work.

RATING: 6.0/10 MAINT: maintained DRIFT: high
▸ 4 reusable components found
── end of results ──
$ submit: