<div align="center">

![banner](https://raw.githubusercontent.com/isXander/Controlify/1.19.x/dev/assets/controlify-banner.png)

[![Mod Loader](https://img.shields.io/badge/Mod%20Loader-Fabric-lightyellow?logo=data:image/png;base64, )](https://fabricmc.net)
![Enviroment](https://img.shields.io/badge/Enviroment-Client-purple)
[![Discord](https://img.shields.io/discord/780023008668287017?color=blue&logo=discord&label=Discord)](https://short.isxander.dev/discord)

[![Modrinth](https://img.shields.io/modrinth/dt/DOUdJVEm?logo=modrinth&style=flat-square)](https://modrinth.com/mod/controlify)
[![CurseForge](https://cf.way2muchnoise.eu/full_835847_downloads.svg)](https://curseforge.com/minecraft/mc-mods/controlify)

[![Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/isxander)

Another fabric mod to add controller support to Minecraft Java - with a focus on compatibility.

</div>

## Why Controlify?

Controlify is a mod that focuses on mod compatibility, ease of use, configurability and bleeding edge features. 

Controlify comes with a huge range of settings to fine-tune each of your controllers *individually*, including vibration strength, every single controller input bind (no hardcoding!) and more.

I, the developer, have contributed to popular mods such as Sodium and Iris to get compatibility working in a native-like state, collaborated with do-a-barrel-roll to get elytra flying working seemlessly with controllers (and flight joysticks) and plan to do much more of this in the future.

The mod is also easy to use for beginners, with default-on button guides, so you know how to interact with the game with a new input scheme.

## Features

### Controller vibration

Controlify supports controller vibration, which has not been seen before for PC versions of Minecraft,
including Bedrock Windows 10 Edition. Configure the intensity of each vibration source, with
complex vibration patterns for lots of aspects of the game (e.g. when you take damage).

![picture of vibration config](https://cdn.modrinth.com/data/DOUdJVEm/images/8a7809d07d9e1d9e3002007d7e5e13b73ce8fb5b.png)

### Built-in gyro support

Controlify has built-in support for controller gyroscopes, allowing you to make fine movements in-game
with your controller. This can be combined with [flick stick](https://www.reddit.com/r/gamedev/comments/bw5xct/flick_stick_is_a_new_way_to_control_3d_games_with/) to be able to use a controller without
the compromise.

### Container cursor

Just like in bedrock edition, you can move a cursor across your inventory, and interact
with it in a controller-friendly way. With dedicated buttons for quick move, dropping etc. Controlify also comes with cursor snapping, so you don't need to be so precise with cursor movements.

![container cursor screenshot](https://cdn.modrinth.com/data/DOUdJVEm/images/249a2cbaea9b374b33fe67717380e732693dd37a.png)

### Controller identification

Controlify has the ability to identify the make and model of your controller automatically,
and displays relevant button textures for your controller. This is also extendable by resource packs, changing up the button textures in a different style and adding some of your own, more niche controller identifiers.

![demonstration of data-driven identification](https://cdn.modrinth.com/data/DOUdJVEm/images/ec1408d51787b87525b9fb0f2e56b54c5910d384.png)

### Joystick support

You can connect any joystick to the mod and map it with your own names and textures, with an unlimited amount of inputs per controller.

### Button guide

There is a simple overlay in-game that displays the buttons you can press
based on your player's state and look direction. This is useful for new players, who
have not yet memorised the controls.

![image of in-game button guide](https://cdn.modrinth.com/data/DOUdJVEm/images/57c41cee14680c74faf947c5cff355c0af4c35b3.png)

Also, some GUIs display controller buttons on elements that have a controller shortcut, to easily navigate with a controller like you should be able to.

![image of in-screen button guide](https://cdn.modrinth.com/data/DOUdJVEm/images/c1ecbb7fa1b0f955c9e5b61816a9518d0b0d4e73.png)

### Containerised Controllers

This mod is built around the fact that each controller is completely separate, with it's own configuration, bindings etc.
This means it will be trivial to add support for split-screen play in the future.

### Built for mod compatibility

GUI operation has been abstracted into a simple API, which allows other mods to easily add support for their own GUIs,
without convoluted support throughout the whole mod's codebase, making it difficult for third parties to integrate.

![demonstration of dabr compat](https://cdn.modrinth.com/data/DOUdJVEm/images/8ee5ec167bc5f8be96da725b10707094559138cb.gif)

*Video recorded using do-a-barrel-roll with a Thrustmaster HOTAS flightstick*

### Automatic controller deadzone calibration

The deadzone values of your controller are automatically calibrated, 
meaning you don't have to worry about it.

![image of calibration screen](https://cdn.modrinth.com/data/DOUdJVEm/images/576cc223ba3c0c8c4731be7b456070e0e2a80651.png)

## What is to come?

A few features in various points in the horizon are:

- Explicit Steam Deck support, with the ability to interface with its gyroscope and be able to handle its extra buttons on the back of the device.
- A better way to change controller bindings, possibly a custom graphical GUI to pick what buttons do what actions, not the other way around.
- Split-screen support of some degree.

## Backports?

This mod is only and will only be available for **1.19.4** and above, this is because in 1.19.4, Mojang
introduced arrow key navigation which was easily ported to controller, below 1.19.4, this is not possible.

## License

This mod is under the [GNU Lesser General Public License, v3.0](/LICENSE).
