GithubHelp home page GithubHelp logo

llsif-keyboard-controller's Introduction

Love Live! School Idol Festival: Keyboard Controller

Keyboard Controller for Love Live! School Idol Festival for Android. This is done by simulating/sending touch event via ADB.

TL;DR

Do not use it! It's unpractical and not maintained anymore. It's okay to poke around the source code though.

Requirements

  • Python 2.7
  • Pygame 1.9.1
  • Android Debug Bridge
  • Ubuntu (and maybe its derivative) users: sudo apt-get install android-tools-adb
  • Linux users: There might be ADB available in your repository. Please check by yourself.
  • Windows/OS X/Linux users: Download ADT Bundle then extract the package. ADB is located in sdk/platform-tools/.
  • pyHook and pywin32 (Optional; Used for unfocused window keystroke detection, useful to Bluestacks user)
  • Programming Skills

Warnings

The currently supported devices are only limited to devices I have...

  • ZTE Grand X (ZTE V970M)
  • LG Optimus One (LG P500)

Because each devices aren't handling touch event the same way. So, you need to create a device module for your own device. You can study from the device modules that already exists in Devices directory. Also, you need to modify Devices/DeviceDetector.py and Devices/__init__.py to include your device module too.

Guide for creating touch scripts for your devices

This is not same as device module file (Python class file)

  • Enable USB debugging and connect your device.
  • Run adb shell getevent, turn on your device screen, touch the screen many many time and observe an output.
  • You should know which device file is for touchscreen at this time, you can observe again by run adb shell getevent | grep /dev/input/<device file> (Linux only)
  • Reverse engineer it!
  • By the way, you can simulate/send event using sendevent command on device
  • There are some touch scripts already available for some devices located in Devices/TouchScripts/

Notes

  • You need to enable USB debugging option and connect the device via USB cable.
  • To change keys configuration edit KeyConfig.py
  • To change path to ADB executable or device serial number edit Devices/ADB/ADBConfig.py

For Windows user

I didn't distribute .exe file for this because it'll need some code modification. I recommend to download and install Python, Pygame, ADB from the links in the requirements section, then modify some configuration (such as path to ADB executable) and run it.

llsif-keyboard-controller's People

Contributors

xerodotc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

z-shang deadjoker

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.