Browse Source

Add media keys; Style keys;

master
Nero Ignis 5 years ago
parent
commit
a24042d6a2
  1. 1
      .idea/vcs.xml
  2. 15
      .idea/workspace.xml
  3. 8
      ADBKeyCodes.php
  4. 7
      index.php
  5. BIN
      play.png
  6. 5
      remote.css

1
.idea/vcs.xml

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="$PROJECT_DIR$/shield-remote" vcs="Git" /> <mapping directory="$PROJECT_DIR$/shield-remote" vcs="Git" />
</component> </component>
</project> </project>

15
.idea/workspace.xml

@ -4,7 +4,13 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="770ea386-39b9-422e-9e8d-15b616f9ec1c" name="Default Changelist" comment="" /> <list default="true" id="770ea386-39b9-422e-9e8d-15b616f9ec1c" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/vcs.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/ADBKeyCodes.php" beforeDir="false" afterPath="$PROJECT_DIR$/ADBKeyCodes.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/index.php" beforeDir="false" afterPath="$PROJECT_DIR$/index.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/remote.css" beforeDir="false" afterPath="$PROJECT_DIR$/remote.css" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -22,7 +28,7 @@
</option> </option>
</component> </component>
<component name="Git.Settings"> <component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/shield-remote" /> <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component> </component>
<component name="PhpDebugGeneral" listening_started="true" /> <component name="PhpDebugGeneral" listening_started="true" />
<component name="ProjectId" id="1knpyvR38KQ5CcG0946GdBJ6dRs" /> <component name="ProjectId" id="1knpyvR38KQ5CcG0946GdBJ6dRs" />
@ -52,6 +58,7 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1606346468032</updated> <updated>1606346468032</updated>
<workItem from="1606346469059" duration="5052000" /> <workItem from="1606346469059" duration="5052000" />
<workItem from="1606567112406" duration="1278000" />
</task> </task>
<servers /> <servers />
</component> </component>
@ -75,10 +82,10 @@
<screen x="0" y="0" width="1366" height="720" /> <screen x="0" y="0" width="1366" height="720" />
</state> </state>
<state x="347" y="155" key="run.anything.popup/0.0.1366.720@0.0.1366.720" timestamp="1606347435018" /> <state x="347" y="155" key="run.anything.popup/0.0.1366.720@0.0.1366.720" timestamp="1606347435018" />
<state x="346" y="41" width="672" height="678" key="search.everywhere.popup" timestamp="1606350711537"> <state x="346" y="41" width="672" height="678" key="search.everywhere.popup" timestamp="1606568056420">
<screen x="0" y="0" width="1366" height="720" /> <screen x="0" y="0" width="1366" height="720" />
</state> </state>
<state x="346" y="41" width="672" height="678" key="search.everywhere.popup/0.0.1366.720@0.0.1366.720" timestamp="1606350711537" /> <state x="346" y="41" width="672" height="678" key="search.everywhere.popup/0.0.1366.720@0.0.1366.720" timestamp="1606568056420" />
<state x="403" y="269" width="540" height="192" key="vcs.readOnlyHandler.ReadOnlyStatusDialog" timestamp="1606346509232"> <state x="403" y="269" width="540" height="192" key="vcs.readOnlyHandler.ReadOnlyStatusDialog" timestamp="1606346509232">
<screen x="0" y="0" width="1366" height="720" /> <screen x="0" y="0" width="1366" height="720" />
</state> </state>

8
ADBKeyCodes.php

@ -86,5 +86,11 @@ const ADB_KEYCODES = array(
"MENU" => 82, "MENU" => 82,
"NOTIFICATION" => 83, "NOTIFICATION" => 83,
"SEARCH" => 84, "SEARCH" => 84,
"TAG_LAST_KEYCODE" => 85, "MEDIA_PLAY_PAUSE" => 85,
"MEDIA_STOP" => 86,
"MEDIA_NEXT" => 87,
"MEDIA_PREVIOUS" => 88,
"MEDIA_REWIND" => 89,
"MEDIA_FAST_FORWARD" => 90,
"MUTE" => 91
); );

7
index.php

@ -41,9 +41,9 @@ $service = new ADBService(ADBService::DEFAULT_HOST);
<a class="col-4"></a> <a class="col-4"></a>
<a class="col-4 btn btn-secondary" onclick="sendKey('VOLUME_DOWN')"><i class="fas fa-volume-down"></i></a> <a class="col-4 btn btn-secondary" onclick="sendKey('VOLUME_DOWN')"><i class="fas fa-volume-down"></i></a>
<a class="col-4"></a> <a class="col-4 btn btn-secondary" onclick="sendKey('MEDIA_PREVIOUS')"><i class="fas fa-backward"></i></a>
<a class="col-4"></a> <a class="col-4 btn btn-secondary" onclick="sendKey('MEDIA_PLAY_PAUSE')"><img src="play.png" alt="" class="play-pause-button"></a>
<a class="col-4"></a> <a class="col-4 btn btn-secondary" onclick="sendKey('MEDIA_NEXT')"><i class="fas fa-forward"></i></a>
<div class="alert alert-info connected-info"> <div class="alert alert-info connected-info">
<?= str_replace('already ', '', $service->connect()) ?> <?= str_replace('already ', '', $service->connect()) ?>
@ -102,6 +102,7 @@ $service = new ADBService(ADBService::DEFAULT_HOST);
sendKey('HOME'); sendKey('HOME');
break; break;
// B // B
case 27:
case 72: case 72:
sendKey('BACK'); sendKey('BACK');
break; break;

BIN
play.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

5
remote.css

@ -11,3 +11,8 @@
width: 100%; width: 100%;
margin-top: 2em; margin-top: 2em;
} }
.play-pause-button {
max-height: 0.8em;
margin-bottom: 3px; /* WEIL LUKI SCHAßAUGAT IST */
}
Loading…
Cancel
Save