Skip to content

Commit

Permalink
Merge pull request #1 from sweenwolf/Android_Box
Browse files Browse the repository at this point in the history
Moved Scrolling function into D-Pad
  • Loading branch information
virresh authored Feb 28, 2021
2 parents d45547f + ab17e08 commit 3ba4dad
Show file tree
Hide file tree
Showing 46 changed files with 946 additions and 484 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Feeling the need to have a touch input in your Android TV?
Or just looking for an alternative to the famous Mouse Toggle App for your TV?

MATVT solves all the above. Unfortunately, it's not on the playstore, and there are no plans to
launch it there either.
launch it there either. If you'd like to see it on playstore, please let me know in the issues
tab (any support is also graciously accepted).

## So what does this app do?
MATVT is intended for users running Android TV (Android version 9+) and have a big remote with
Expand Down Expand Up @@ -35,6 +36,11 @@ trust the release apk ;)
- The mouse warps around your TV sides, so you can roll over from the top of your TV to the bottom instantly
- Mouse movement is momentum based, so keeping key pressed for longer will increase the movement / send multiple swipes


Shoutout to @sweenwolf for enhancing the app to work on tv boxes with less remote buttons.
See a demo of the modified version in action by TechDoctorUK at:
[https://youtu.be/UC7bPw2tG4c](https://youtu.be/UC7bPw2tG4c)

# Important points to know After Installing
- Be sure to go to Special App Permissions in your settings and give permission to MATVT to draw over
other system apps. If you don't do this step and enable the accessibility service beforehand, the app won't have
Expand Down Expand Up @@ -63,3 +69,5 @@ If you have gotten yourself in this situation, see FAQ.

# Credits
Thanks to EVA Facial Mouse for open sourcing their code. I've taken lots of ideas from their codebase. You can check them out at https://github.com/cmauri/eva_facial_mouse
Thanks to @sweenwolf for making this app work on remotes with less buttons
Thanks to TechDoctorUK for making a demo video
11 changes: 7 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "io.github.virresh.matvt"
minSdkVersion 24
targetSdkVersion 29
versionCode 1
versionName "1.0"
versionCode 101
versionName '1.0.1'

}

Expand All @@ -21,11 +21,14 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {

implementation 'androidx.leanback:leanback:1.0.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
}
21 changes: 18 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.github.virresh.matvt">

<uses-feature
android:name="android.software.leanback"
android:required="false" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />

<application
android:allowBackup="true"
android:banner="@drawable/ic_banner"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.MATVTMouseForAndroidTVToggle">
<activity android:name=".gui.GuiActivity">
android:theme="@style/AppTheme">
<activity
android:name=".gui.GuiActivity"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>

<service
android:name=".services.MouseEventService"
android:label="Mouse Event Listening Service"
android:label="Mouse Toggle Service"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>

<meta-data
android:name="android.accessibilityservice"
android:resource="@xml/accessibility_service_config" />
Expand Down
Binary file added app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3ba4dad

Please sign in to comment.