All Projects → Apostolique → Apos.input

Apostolique / Apos.input

Licence: mit
Polling input library for MonoGame.

Projects that are alternatives of or similar to Apos.input

Apos.Shapes
Shape rendering in MonoGame.
Stars: ✭ 21 (-16%)
Mutual labels:  nuget, monogame
Cute headers
Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games
Stars: ✭ 3,274 (+12996%)
Mutual labels:  game, library
MonoGame.SplineFlower
Create wonderful smooth Bézier-, CatMulRom- and Hermite-Splines with Trigger Events for your MonoGame project.
Stars: ✭ 18 (-28%)
Mutual labels:  nuget, monogame
Aim Ik
A Unity-3D library, to procedural orientate character head (and chest) in a direction without using any animation data.
Stars: ✭ 164 (+556%)
Mutual labels:  game, library
Openviii Monogame
Open source Final Fantasy VIII engine implementation in C# working on Windows and Linux (Android and iOS planned too!) [Monogame]
Stars: ✭ 424 (+1596%)
Mutual labels:  game, monogame
Protogame
This project has been sunset as of 1st Jan 2018 and is no longer supported or maintained
Stars: ✭ 166 (+564%)
Mutual labels:  game, monogame
MonoGame.Forms
MonoGame.Forms is the easiest way of integrating a MonoGame render window into your Windows Forms project. It should make your life much easier, when you want to create your own editor environment.
Stars: ✭ 183 (+632%)
Mutual labels:  nuget, monogame
P3d Legacy
Legacy repository for the Pokémon3D Visual Basic version
Stars: ✭ 122 (+388%)
Mutual labels:  game, monogame
Linux Steam Integration
Helper for enabling better Steam integration on Linux
Stars: ✭ 386 (+1444%)
Mutual labels:  game, library
Bounce
Bounce is a 3D physics engine for games.
Stars: ✭ 300 (+1100%)
Mutual labels:  game, library
Aerogameframework
AeroGameFramework is a Roblox game framework that makes development easy and fun. The framework is designed to simplify the communication between modules and seamlessly bridge the gap between the server and client.
Stars: ✭ 150 (+500%)
Mutual labels:  game, library
Barotrauma
A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
Stars: ✭ 547 (+2088%)
Mutual labels:  game, monogame
Magicallife
A 2d game that aspires to be similar to Rimworld, with more depth, magic, and RPG concepts.
Stars: ✭ 145 (+480%)
Mutual labels:  game, monogame
Pygame Menu
Menu for pygame. Simple, lightweight and easy to use
Stars: ✭ 244 (+876%)
Mutual labels:  game, input
Simplexrpgengine
Modular game engine built with MonoGame, with GMS2-like workflow and advanced level editor
Stars: ✭ 122 (+388%)
Mutual labels:  game, monogame
Apos.Gui
UI library for MonoGame.
Stars: ✭ 77 (+208%)
Mutual labels:  nuget, monogame
Geotic
Entity Component System library for javascript
Stars: ✭ 97 (+288%)
Mutual labels:  game, library
Swarmz
A free, header-only C++ swarming (flocking) library for real-time applications
Stars: ✭ 108 (+332%)
Mutual labels:  game, library
Ecsrx
A reactive take on the ECS pattern for .net game developers
Stars: ✭ 288 (+1052%)
Mutual labels:  monogame, nuget
Lambdahack
Haskell game engine library for roguelike dungeon crawlers; please offer feedback, e.g., after trying out the sample game with the web frontend at
Stars: ✭ 439 (+1656%)
Mutual labels:  game, library

Apos.Input

Polling input library for MonoGame.

Discord

Documentation

Build

NuGet NuGet

Features

  • Manages the input states for you every frame
  • Mouse, Keyboard, and GamePad buttons abstractions
  • Tracking mode so that you don't accidentally consume the same input multiple times
  • Static or instanced usage

Usage samples

In your game's Initialize(), pass the game class to InputHelper.Setup():

protected override void Initialize() {
    InputHelper.Setup(this);
}

In your game's Update(GameTime gameTime), call the two functions:

protected override void Update(GameTime gametime) {
    //Call UpdateSetup at the start.
    InputHelper.UpdateSetup();

    //...

    //Call UpdateCleanup at the end.
    InputHelper.UpdateCleanup();
}
//Create a condition to jump.
//It should work on space, the first gamepad's A button, or the mouse's left button.
ICondition jump =
    new AnyCondition(
        new KeyboardCondition(Keys.Space),
        new GamePadCondition(GamePadButton.A, 0),
        new MouseCondition(MouseButton.LeftButton)
    );
//To check if the jump is triggered:
if (jump.Pressed()) {
    //Do the jump change.
}

Other projects you might like

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].