Skip to content
uzairdeveloper223Public

About

Test controller inputs in your browser: live 3D view, stick checks, saved reports, calibration, and a joystick/gyro target range.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

PadScope logo

PadScope

Build and deployment Code license: MIT

PadScope is a browser-based controller tester. It shows live input on a 3D PS5 Controller model, measures resting stick movement, and saves guided test reports. It also includes a joystick/gyro target range and a controller-driven blaster viewer.

Open PadScope · Report an issue

Built with TypeScript, Three.js, and Vite. Readings, reports, and settings stay in your browser. There is no backend or analytics.

Features

  • Animated controller model with orbit, zoom, and shell/lightbar colors.
  • Raw and calibrated stick plots, trigger values, button history, and input export.
  • Guided stick, trigger, and button checks with saved comparisons and JSON/text/PDF reports.
  • Local stick-center, deadzone, and motion calibration.
  • Motion, touchpad, battery, rumble, and lightbar tools on supported WebHID devices.
  • A 60-second target range and 1:1 blaster rotation viewer with remappable controls.
  • Light/dark themes, mobile layouts, music, and range sound effects.

Connect a controller

  1. Connect with a data-capable USB cable, or pair through your operating system's Bluetooth settings.
  2. Focus PadScope and press a controller button. Supported buttons and sticks appear through the Gamepad API.
  3. In desktop Chrome or Edge, select Connect hardware and choose a supported controller. This grants WebHID access for compatible motion, touch, battery, light, and rumble reports.
  4. Check the live status labels. A feature is usable only when the controller and browser expose it.

Previously granted HID devices are reopened when possible. Disconnect hardware closes PadScope's HID connection; browser site settings control the saved permission. If multiple gamepads are present, use the active-controller selector.

Without a controller, select Try a preview or use a pointer/keyboard in the target range. Guided checks need live input; blaster inspection also needs motion.

Browser and device compatibility

Environment Buttons / sticks Advanced HID tools
Desktop Chrome / Edge With a browser-supported controller With WebHID, permission, and a supported report layout
Desktop Firefox / Safari Where the browser supports the connected gamepad Unavailable without WebHID
Android / iPhone / iPad Depends on browser, OS, controller, and connection Use desktop Chrome / Edge
No controller Simulated workbench preview and pointer/keyboard range practice Preview does not send hardware output

The HID chooser currently recognizes these Sony vendor/product IDs:

Vendor Product Protocol family
054c 05c4, 09cc DualShock 4
054c 0ce6, 0df2 DualSense / DualSense Edge

Compatible third-party controllers may use these IDs. Physical appearance does not establish protocol support. Other controllers can use Gamepad input when the browser exposes it; unmapped gamepads show raw button indices and the first four axes.

USB reports have been checked on a PS5-shell controller identifying as 054c:09cc. Other device/connection combinations still need hardware testing. See protocol notes for supported layouts and test data.

Rumble depends on HID output or browser Gamepad haptics. Adaptive-trigger effects and microphone controls are not implemented. The OS may intercept the PS button. Battery is an estimate, report rate is not latency, and the lightbar's current color has no readback.

Linux HID permissions

If standard Gamepad input works but Connect hardware fails, check access to the controller's /dev/hidraw* node:

lsusb
udevadm info --attribute-walk --name=/dev/hidrawX

Replace hidrawX with the controller node. On a desktop using systemd/logind, create /etc/udev/rules.d/70-padscope.rules with a rule scoped to your device. For the 054c:09cc controller:

SUBSYSTEM=="hidraw", KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", TAG+="uaccess"

Substitute the product ID reported by your controller, then reload the rules:

sudo udevadm control --reload-rules

Unplug and reconnect the controller, then retry Connect hardware. The rule grants the active local session access to that device. Browser packaging or sandboxing may also affect access. Bluetooth devices can expose different parent attributes; inspect their actual node instead of assuming the USB rule applies.

Check your controller

Open Controller check below the live inputs and select Start check. Warm up both sticks, keep hands off for five seconds, sweep their outer edges, pull/release the triggers, then press/release each exposed button. Each step advances when you choose; you can repeat, skip, or finish early.

Results show resting offset, P95 radius, jitter, direction coverage, trigger endpoints/cycles, and actual button pairs. Untested or unavailable controls stay explicit. The check uses input before PadScope calibration; a stable, verified resting capture can suggest a radial deadzone for PadScope only.

Record connection and profile/firmware notes, save up to ten checks locally, and compare resting input under matching conditions. Use Download JSON, Download text, or Print / save PDF to keep a copy. Losing focus or input pauses capture; switching controllers ends the active check and keeps its recorded results.

See the measurement method and research sources. Reference percentages describe browser-visible observations, not manufacturer fault tolerances or hardware latency.

Calibrate your baseline

  • Calibrate centers: release both sticks and keep the controller still while PadScope samples their resting positions.
  • Radial deadzone: filter small movements around the calibrated center. Raw readings remain visible for comparison.
  • Motion zero: hold your resting pose still for about one second to sample gyro bias and recenter the displayed controller.
  • Reset: restore default centers, deadzone, and motion calibration for the active device.

Calibration changes PadScope's readings, model, and aiming only, not controller firmware or other games. Centers and gyro bias are remembered locally for the device key. Motion pose and blaster grip references are session-local. Changing motion zero or resetting calibration requires centering the range/inspection grips again.

Target range

Open Take it to the range, choose a blaster and aiming mode, then select Start 60-second round.

Action Controller default Pointer / keyboard
Aim Right stick Point at the field; arrows / WASD when focused
Fire R2 Click / tap, Space, or the Fire button
Center Square C or Center aim / grip
Pause / resume Options P, Escape, or Pause / Resume

Keyboard shortcuts require focus on the range. Choose the left stick if preferred, adjust sensitivity/inversion, and use the mapping selects or Bind press to remap controller actions. Release all buttons before binding. Duplicate assignments swap automatically. Pause a running round to edit aiming settings; audio controls remain available.

Fire is one shot per press, with release required between shots and a 160 ms rate limit. Ordinary targets earn 100 points, small targets 150, and bullseyes add 50. Consecutive hits add a capped streak bonus; misses reset the streak.

The round pauses when closed, out of view, unfocused, or interrupted by delayed updates or an input-source change. Gyro motion loss also pauses it. Resume explicitly when ready.

Right-hand gyro-gun grip

  1. Connect hardware and confirm live motion is available.
  2. Select Gyro gun · right-hand grip.
  3. Hold the controller sideways in your right hand, with its left handle pointing toward the center of the screen.
  4. Keep still and select Center grip. Aim by moving that handle; fire with your mapped control.

Recenter after changing grip or if yaw drifts. Aiming away from the field or backward prevents shots. The range's grip center is independent of the workbench model's resting pose.

Blaster in hand

Open Blaster in hand, select Compact, Carbine, or Longshot, and center the same right-hand, left-handle-forward grip. The barrel starts pointing into the screen. You can then turn, tilt, and roll through every angle with 1:1 relative rotation.

  • Square / C: center grip.
  • Options / F: freeze or resume rotation.
  • Use Model zoom to examine the model and the mapping selects to change controller controls.

Keyboard shortcuts require focus on the inspection view. Freeze holds the shown angle; resume follows your current physical grip. Closing, scrolling out of view, or losing focus freezes inspection. Changing input source, losing motion, or resetting motion calibration clears centering.

Inspection tracks rotation, not physical position. It has no aim sensitivity or offscreen clamp and uses its own grip reference. Simulated preview inputs cannot drive it; live motion is required.

Music and effects

  • Range: “Space Jazz” by Kevin MacLeod, with Kenney sci-fi shot, hit, bullseye, and round sounds.
  • Inspection: “Floating Cities” by Kevin MacLeod.

Each area has a Background music switch. Music volume is shared across both areas; the range also has separate Sound effects and effects-volume controls. Preferences are remembered in this browser.

Audio starts after a page interaction, not from a hardware button alone. If the browser blocks it, click a music control to retry. Music fades when an area closes or leaves view; all audio becomes silent while the page is hidden or unfocused. If both areas are visible, inspection music takes priority so the soundtracks do not overlap.

Tracks and effects are bundled and served locally. Audio attribution and full licenses include the original sources and web-encoding changes.

Troubleshooting

Symptom What to check
No input Use a data cable, press a button with the page focused, and confirm the OS recognizes the controller.
Controller missing from HID chooser Use desktop Chrome / Edge on HTTPS or localhost; confirm the supported IDs and close other controller tools.
HID opens but no advanced readings arrive Reconnect, try USB, check OS permissions, and confirm that this device sends a supported full report.
Model/range cannot load Enable hardware acceleration and check that the site serves its bundled models and textures. Close/reopen the area to retry a load failure.
Gyro aim or inspection unavailable Exit preview, connect real HID motion, and center your grip.
Motion needs lining up Hold still and use Motion zero, then center the relevant grip again.
Controller check pauses Keep the check open and PadScope focused; resume explicitly. Incomplete hands-off captures restart.
A check button stays untested Release it first, then press/release again; the OS may intercept system buttons. Mark unavailable only when appropriate.
No deadzone suggestion Complete a stable hands-off window and verify the exposed stick axes in warm-up; repeat if you touched the sticks.
No music Check switches/volumes, interact with a page control, and keep the area visible and the page focused.
Rumble or color command has no visible result Check capability labels and the physical device; an accepted command is not hardware readback.
Preferences are not remembered Browser storage may be disabled; settings still work for the session.

Development and verification

Run locally

Use Node.js 24 LTS and npm.

git clone https://github.com/uzairdeveloper223/PadScope.git
cd PadScope
npm ci
npm run dev

Open the local URL printed by Vite, normally http://localhost:5173/. No API keys, environment variables, or separate asset downloads are required.

Command Purpose
npm run dev Start the development server
npm test Run the Node regression tests
npm run build Check TypeScript and produce dist/
npm run preview Serve an existing production build, normally on port 4173

Use HTTPS or localhost for controller access. Opening index.html directly as a file does not run the application.

Project structure and checks

src/main.ts              Input selection, calibration, hardware tools, app wiring
src/controller/          Gamepad/HID state, Sony report parsing, motion tracking
src/health/              Guided checks, measurement math, saved reports, comparison
src/model.ts             Controller model articulation and framing
src/ui.ts, src/plots.ts   Readings, button history, plots
src/environment.ts       Browser/platform guidance and theme selection
src/game/                Range, shared assets, grip aiming, blaster inspection
src/audio.ts             Gesture-gated music and range effects
public/models/           Artist-made models, textures, attribution
public/audio/            Music, effects, attribution, Creative Commons licenses
tests/                   Node regressions using real GLB assets and report data

Run npm test and npm run build before contributing. Tests cover report decoding, motion, model geometry, range controls/scoring, and guided-check measurements and storage. See range and inspection notes and controller check measurements.

Rendering, audio, and controller feel need browser testing. For related changes, check both themes, narrow layouts, input loss, and asset loading under /PadScope/.

Contributing and feedback

See CONTRIBUTING.md for pull requests and controller reports.

GitHub Pages

The included Pages workflow installs locked dependencies, runs tests, builds the site, and deploys dist/ after pushes to main. Pull requests run checks without deploying.

In the repository's Settings → Pages → Build and deployment, select GitHub Actions. The deployment target for this repository is:

https://uzairdeveloper223.github.io/PadScope/

vite.config.ts uses base: './' so scripts, fonts, models, textures, and audio resolve beneath the project path. The same dist/ can be served by an HTTPS static host; no application server is needed.

Credits and licensing

Created and maintained by Uzair Mughal.

PadScope code: MIT, copyright © 2026 Uzair Mughal.

Asset Creator License Details
PS5 Controller Taohid Animation CC BY 4.0 Source, preparation, runtime changes, hash
Blaster Kit 2.1 models and texture Kenney CC0 1.0 Source and bundled-file hashes
“Space Jazz” and “Floating Cities” Kevin MacLeod / incompetech.com CC BY 4.0 Sources, encoding changes, hashes
Sci-fi Sounds 1.0 Kenney CC0 1.0 Sources and selected effects
Barlow and JetBrains Mono Their respective font authors SIL OFL 1.1 Third-party notices

Model and audio licenses are separate from the MIT code license. Keep their attribution and notices when redistributing PadScope. See third-party notices for library and font licensing.

PadScope is an independent project and is not affiliated with Sony, the model artists, or the audio creators. PlayStation, DualShock, and DualSense are Sony trademarks.

About

Test controller inputs in your browser: live 3D view, stick checks, saved reports, calibration, and a joystick/gyro target range.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages