Code Monkey home page Code Monkey logo

gdvk's Introduction

gdvk - Godot Virtual Keyboard

Send virtual keyboard presses in Godot on Linux(X11)/Windows

On Windows a lot of special characters/keys are missing but on Linux most of what you need should be there. The Windows virtual keycodes are here.

Please inform me about how my code is shit; I'm new to C++.

Usage

Keys mostly use the same naming as Godot minus the KEY_ prefix. Note that GDVK does not support all keys that Godot supports but some that Godot does not, read the source code if you need to (the key map is at the end of gdvk.cpp).

Compiling

You will need scons installed and for cross compiling for windows you need mingw-w64-gcc

git submodule update --init --recursive
cd godot-cpp
scons platform=<PLATFORM> generate_bindings=yes target=release -j12
cd ..
scons platform=<PLATFORM> target=release

Change <PLATFORM> to linux/windows and the 12 in -j12 to the number of threads on your system. You only need to run the first scons command once per platform. Remove target=release from both commands if you need debugging, but this makes the binaries way bigger and slower.

gdvk's People

Contributors

crispypin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gdvk's Issues

toggle

Keep track of pressed keys and supply a key_toggle function (useful for modifiers especially).
Also release all keys on exit.

Alt Gr

add Alt Gr, it's kinda important on a lot of layouts

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.