ladit/ajoystick

Simple Android joystick base on adb.

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/ladit/ajoystick

v1.2.1 2020-04-03 01:23 UTC

This package is auto-updated.

Last update: 2025-11-29 02:37:42 UTC


README

Simple Android joystick base on adb for PHP, including some Genyshell operations.

require ext-dom and ext-gd.

example

<?php
use Ajoystick\Device;

$element = Device::singleton()->waitUntil(function () {
    $element = Device::singleton()->findElementById('element-id');
    if ($element) return [true, $element];
    return [false, null];
});
$element->tap();
Device::singleton()->swipeUp();
Device::singleton()->screenshotAndSaveTo('.');