Skip to main content

Umaru

A small Switch Pro Controller driver which lets you use your computer with it !



PyPI version Downloads PyPI - Downloads PyPI - Python Version PyPI - Status GitHub - License GitHub top language CodeQL Checks Badge Code Size Repo Size Issues

Index

Features

  • A cool looking Bluetooth device selection screen
  • Control your mouse using your controller
  • Use a virtual keyboard with your controller

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You will need Python 3 to use this module

# vermin output
Minimum required versions: 3.7
Incompatible versions:     2

Installing

Option 1: From PyPI

pip install --upgrade umaru

This will install the latest stable version from PyPI

Option 2: From Git

pip install --upgrade git+https://github.com/Animenosekai/umaru.git

This will install the latest development version from the git repository

You can check if you successfully installed it by printing out its version:

$ umaru --version
1.0

Usage

usage: umaru [-h] [--filter FILTER]

options:
  -h, --help            show this help message and exit
  --filter FILTER, -f FILTER
                        The default filter. Can be used to skip the controller discovery step.

You can use the --filter parameter to give a default filter for the discovery step, which automatically selects the controller if it is the only result which comes up.

If you are using umaru for the first time, I would recommend using the interactive discovery window first:

Start by running umaru

umaru

Select your device

You should see the device discovery scene appear :

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┓                                                                                            
┃ Device                             ┃ Manufacturer ┃ Serial Number         ┃                                                                                            
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━┩                                                                                            
│                                    │ Apple        │                       │                                                                                            
│                                    │ Apple        │                       │                                                                                            
│ Apple Internal Keyboard / Trackpad │ Apple Inc.   │ FM70*************+F** │                                                                                            
│ Apple Internal Keyboard / Trackpad │ Apple Inc.   │ FM70*************+F** │                                                                                            
│ Apple Internal Keyboard / Trackpad │ Apple Inc.   │ FM70*************+F** │                                                                                            
│ Apple Internal Keyboard / Trackpad │ Apple Inc.   │ FM70*************+F** │                                                                                            
│ Apple Internal Keyboard / Trackpad │ Apple Inc.   │ FM70*************+F** │                                                                                            
│ Apple Internal Keyboard / Trackpad │ Apple Inc.   │ FM70*************+F** │                                                                                            
│ Apple Internal Keyboard / Trackpad │ Apple Inc.   │ FM70*************+F** │                                                                                            
│ Apple Internal Keyboard / Trackpad │ Apple Inc.   │ FM70*************+F** │                                                                                            
│ Apple Internal Keyboard / Trackpad │ Apple Inc.   │ FM70*************+F** │                                                                                            
│ Apple Internal Keyboard / Trackpad │ Apple Inc.   │ FM70*************+F** │                                                                                            
│ BTM                                │ APPL         │                       │                                                                                            
│ Headset                            │ Apple        │                       │                                                                                            
│ Keyboard Backlight                 │              │                       │                                                                                            
└────────────────────────────────────┴──────────────┴───────────────────────┘                                                                                            
                                                                                                                                                                         
                                                                                                                                                                         
                                                                                                                                                                         
⠴ Searching for a controller — 0:00:07                                                                      

Here, you can search your Switch Pro Controller using the arrows on your keyboard. You can also filter the results by typing a keyword.

┏━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓                                                                                                                    
┃ Device         ┃ Manufacturer ┃ Serial Number     ┃                                                                                                                    
┡━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩                                                                                                                    
│ Pro Controller │              │ 58:**:**:**:**:D9 │                                                                                                                    
└────────────────┴──────────────┴───────────────────┘                                                                                                                    
                                                                                                                                                                                                                                                                                                                                       
⠸ Filter: pro — 0:00:13                                             

Press ENTER to select the device.

Use your controller

It should now connect to your controller.

  • You can use the directional pad (the arrows) to move your cursor
  • You can use the A button to left-click
  • You can use the B button to right-click
  • You can use the left stick to move the cursor up and down
  • You can use the right stick to scroll
  • You can use the share button (the square with a square in it) to bring up the virtual keyboard
    • With the keyboard opened you can use the ZR button to capture or remove the controller capturing : this switches if the controller controls the mouse or the keyboard.
    • When captured, you can use the directional pad (the arrows) to move around the keys
    • When captured, you can use the A button to press a key, B to delete
    • The capture also releases the scroll, which is might act weird if the controller is not captured by the keyboard
    • You can press the share button again to remove the capture and close the virtual keyboard

Quitting Umaru

Go back to your terminal and press CTRL+C or just press the left and right stick at the same time to quit umaru

Metadata

Release files for umaru 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for umaru 1.0
File Size Uploaded
umaru-1.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for umaru 1.0
File Interpreter ABI Platform
umaru-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.8 kB

Release files / umaru-1.0.tar.gz

Download URL umaru-1.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ce3eea7a1ff9d5594f6f72b29649e356bad29a247304d5595033b3ac43582fe9
BLAKE2b-256 checksum
How to use checksums
99d10feba19f86fe7cdaf184f0f4cbe6c2e17e6a82e88a73ee276d5076ed20d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Darwin/23.0.0

Release files / umaru-1.0-py3-none-any.whl

Download URL umaru-1.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b54692c346b356c11d7899a5c7f3a6cf742fd383e4e204e10a3b16a6acfe697e
BLAKE2b-256 checksum
How to use checksums
5434e9aeda36a8d4bf30c10844b24d597f4f58b66fb6df9b22165f859dafbbd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Darwin/23.0.0

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page