Giter Site home page Giter Site logo

keysuppressor's Introduction

Key Suppressor

Suppresses a configurable list of keys to prevent the base game from handling that key event whilst enabling other mods to still handle that event.

Motivation

The Controller mapping in Stardew Valley often has multiple keys for the same action defined. For example the XBox Controller has three buttons for opening the menu (Start, Y and B). This mod aims to free up some of the duplicate keys to be used by other mods.

Controller Scheme

Some example mods which can be used with this mod:

It does not always work though with mods which require a button to be held. These mods need to adapt their code to ensure compatibility with this mod.

Configuration

Start the game and let the 'config.json' be generated. By default it creates a list you may want to modify:

Button Suppress Mode Note
DPadDown Suppress
DPadLeft Suppress
DPadRight Suppress
DPadUp Suppress
LeftShift DoNotSuppress
RightStick Suppress Suppressing this button removes the chat functionality. Useful for splitscreen.
ControllerA DoNotSuppress
ControllerB SuppressOnlyWhenPlayerFree Retains the functionality to cancel within menus, but frees it up for when the player is free to act
ControllerX DoNotSuppress
ControllerY DoNotSuppress
ControllerBack DoNotSuppress
ControllerStart DoNotSuppress
BigButton DoNotSuppress
LeftShoulder DoNotSuppress
RightShoulder DoNotSuppress
LeftTrigger DoNotSuppress
RightTrigger DoNotSuppress
LeftThumbstickDown DoNotSuppress
LeftThumbstickLeft DoNotSuppress
LeftThumbstickRight DoNotSuppress
LeftThumbstickUp DoNotSuppress
RightThumbstickDown DoNotSuppress
RightThumbstickLeft DoNotSuppress
RightThumbstickRight DoNotSuppress
RightThumbstickUp DoNotSuppress

You can freely extend this list by other keys. See a list of possible keys in the Stardew Wiki page Key Bindings

The following suppression modes exist:

  • Suppress: The key is suppressed in all circumstances of the game (even in the main menu, loading screen, etc.)
  • SuppressOnlyWhenPlayerFree: The key is suppressed only ingame when the player is free to act on the world (no menu is displayed, no cutscene is in progress, etc).
  • SuppressOnlyInMenu: The key is suppressed only ingame when the player is currently in some menu (inventory, chests, etc.)
  • SuppressOnlyWhenPlayerCanMove: Same as SuppressOnlyWhenPlayerFree but the player is also free to move (e.g. not using a tool)

keysuppressor's People

Contributors

deflaktor avatar veselin-antonov avatar

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.