Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 469 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 469 Bytes

Ajoystick

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('.');