GithubHelp home page GithubHelp logo

univrsal / input-overlay Goto Github PK

View Code? Open in Web Editor NEW
2.6K 39.0 231.0 66.61 MB

Show keyboard, gamepad and mouse input on stream

License: GNU General Public License v2.0

CMake 19.49% C++ 49.29% C 7.11% Shell 1.95% HTML 11.89% JavaScript 10.27%
obs plugin keyboard input overlay

input-overlay's People

Contributors

agaertner avatar anchaides avatar christiankyle-ching avatar chuck-sys avatar codewizrd001 avatar dmitri-mcguckin avatar fatalbullethit avatar godgun968 avatar hereinplainsight avatar hotwords123 avatar jellybrick avatar kailee2588 avatar locksmitharmy avatar lucastoledo95 avatar mcronce avatar mhbeals avatar networkjanitor avatar pvint avatar rhythmicsys avatar rodriguezrrp avatar rvillani avatar schoolie440 avatar smokeynerd avatar summonhim avatar tetragg avatar thehonkler avatar univrsal avatar wc7086 avatar xssplater avatar yukihane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

input-overlay's Issues

Can’t get the `DELETE` key to work / be registered

What happened:

I am currently trying to add the DELETE key to my overlay. According to https://github.com/univrsal/input-overlay/blob/master/libuiohook/include/uiohook.h#L236 it should be 0x0E53. When I use that in my .ini, the key is not registered in the input overlay. i even tried using a 1x1 overlay with it being the only key.

What was supposed to happend:

When I hit DELETE, input overlay should detect it and light the DELETE key in my overlay.

Log file:

2018-03-20 10-08-39.txt

Might be that I’m just missing something here, of course. I’m pretty new to this tool and the whole input hooking thing in general :)

TAB, R and F key not showing

So I'm using the WASD preset and import them exactly like in the vimeo tutorial video, but the TAB, R and F keys don't show (they are invisible).

It appears that the 2nd row of keys in the preset texture isn't being shown (it does show if I import the texture without the .ini ofc). I think this is the case ever since I realized that all the keys that DO show are in the 1st row of keys, and the ones not showing in the 2nd row.

put an "Alt" please

can you put an "Alt" in to the "wasd-extended"? it would be nice if i have an "Alt"
image

[Suggestion] Possibility of replacing keys with icons/custom text in history

sf

Hey man, i've been using your plugin to make myself a basic street fighter overlay, but there's stuff that i'd like to do regarding the history that i can't at the moment.
The problem is that the history shows which keys are used when in street fighter (and various games), each specific command has a name and that name is used by the community (e.g. a Light-Punch on my keyboard is Q, however it's name should be LP, and on an american keyboard it should be A). So i'd like to be able to attribute images to keys, or at the very least custom names, so that the history matches the input overlay

Being able to only allow specific keys to show up in the history would also be pretty neat, because if i stream with the history i can't afford to type any password even though i only have the history on for 6 specific keys. Would also be neat to be able to show the history fully horizontally, in order to show combos properly

Also, the names of arrow keys is messed up (it shows their value instead), i don't know why

IO without OBS

Can I somehow make Input overlay work without OBS?

Not on stream, but in Nvidia ShadowPlay.

Linux Installation

The instructions in the README file are ineffective in installing the plugin. I tried those steps and others numerous times in multiple different ways, and none of them worked. Many of us would like a clarification on how to install the plugin on linux, please.

mouse over sensitive in game

What happened: (v4.2 because 4.4 won't install) Mouse direction flickers all over the place in-game (Quakeworld) even during smooth single directional moevement. Works properly out of game. Sensitivity doesnt fix the issue. It is like the movement indicator is trying to 'recenter' after every tic. "Use Monitor center" option freezes the mouse input.

What was supposed to happend:

Log file:

Need help - Can't get key to appear

I'm trying to make a layout with single keys:

F1 F2 F3 F4 F5
^ 1 2 3 4 5
Q W E R
A S D F V
SHIFT SPACE

with every key being 1x1 except shift 2x1 and space 3x1.

However with my current setup shift doesn't appear at all the rest works as it should.
My graphic files contains 3 (or 6) rows of keys with 10 keys per row the first 2 (or 4) rows contain the single keys the 3rd (or 5th and 6th) contain the shift and space key.

Ini @ Pastebin
Graphic file and result @ imgur

Any idea what I did wrong?

Plugin won't load in OBSS 21.0.1 (similar to closed topic below)

Similar to the problem below, OBS Studio won't load the plugin and seems to produce the same error (with slightly different formatting). I have tried installing the suggested VC++ runtimes (which apparently fixed it for the previous issue) but it did not work for me. Please see below the log file generated after installing the VC++ runtimes, which looks the same as it did before.

Also, please feel free to giggle at the age of my system. Still going strong 10+ years later.

01:44:05.082: CPU Name: Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
01:44:05.082: CPU Speed: 3600MHz
01:44:05.082: Physical Cores: 4, Logical Cores: 4
01:44:05.082: Physical Memory: 8190MB Total, 5554MB Free
01:44:05.082: Windows Version: 6.1 Build 7601 (revision: 24024; 64-bit)
01:44:05.082: Running as administrator: false
01:44:05.082: Aero is Disabled
01:44:05.083: Portable mode: false
01:44:05.101: OBS 21.0.1 (64bit, windows)
01:44:05.101: ---------------------------------
01:44:05.102: ---------------------------------
01:44:05.102: audio settings reset:
01:44:05.102: samples per sec: 44100
01:44:05.102: speakers: 2
01:44:05.104: ---------------------------------
01:44:05.104: Initializing D3D11...
01:44:05.104: Available Video Adapters:
01:44:05.106: Adapter 1: NVIDIA GeForce GTX 1050 Ti
01:44:05.106: Dedicated VRAM: 4192665600
01:44:05.106: Shared VRAM: 4025626624
01:44:05.106: output 1: pos={0, 0}, size={1920, 1080}, attached=true
01:44:05.110: Loading up D3D11 on adapter NVIDIA GeForce GTX 1050 Ti (0)
01:44:05.142: D3D11 loaded successfully, feature level used: 45056
01:44:05.936: ---------------------------------
01:44:05.936: video settings reset:
01:44:05.936: base resolution: 1920x1080
01:44:05.936: output resolution: 1280x720
01:44:05.936: downscale filter: Bicubic
01:44:05.936: fps: 30/1
01:44:05.936: format: NV12
01:44:05.939: Audio monitoring device:
01:44:05.939: name: Default
01:44:05.939: id: default
01:44:05.939: ---------------------------------
01:44:05.941: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
01:44:05.942: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
01:44:05.965: [AMF] <obs_module_load> AMF not supported (no AMD graphics)
01:44:05.965: Failed to initialize module 'enc-amf.dll'
01:44:05.972: LoadLibrary failed for '../../obs-plugins/64bit/input-overlay.dll': The specified module could not be found.
01:44:05.972: (126)
01:44:05.972: Module '../../obs-plugins/64bit/input-overlay.dll' not loaded

01:44:05.986: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
01:44:05.987: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
01:44:05.987: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
01:44:05.988: Failed to load 'en-US' text for module: 'obs-browser.dll'
01:44:05.988: [browser_source: 'Version: 1.29.0']
01:44:05.990: NVENC supported
01:44:06.070: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/uiohook.dll' not found, loading of module failed
01:44:06.070: Couldn't find VLC installation, VLC video source disabled
01:44:06.077: No blackmagic support
01:44:06.082: [Media Foundation encoder]: plugin is disabled for performance reasons on Windows versions prior to 8
01:44:06.084: ---------------------------------
01:44:06.084: Loaded Modules:
01:44:06.084: win-wasapi.dll
01:44:06.084: win-mf.dll
01:44:06.084: win-dshow.dll
01:44:06.084: win-decklink.dll
01:44:06.084: win-capture.dll
01:44:06.084: vlc-video.dll
01:44:06.084: text-freetype2.dll
01:44:06.084: rtmp-services.dll
01:44:06.084: obs-x264.dll
01:44:06.084: obs-vst.dll
01:44:06.084: obs-transitions.dll
01:44:06.084: obs-text.dll
01:44:06.084: obs-qsv11.dll
01:44:06.084: obs-outputs.dll
01:44:06.084: obs-filters.dll
01:44:06.084: obs-ffmpeg.dll
01:44:06.084: obs-browser.dll
01:44:06.084: image-source.dll
01:44:06.084: frontend-tools.dll
01:44:06.084: enc-amf.dll
01:44:06.084: coreaudio-encoder.dll
01:44:06.084: ---------------------------------
01:44:06.084: ==== Startup complete ===============================================
01:44:06.087: All scene data cleared
01:44:06.088: ------------------------------------------------
01:44:06.126: WASAPI: Device 'Speakers (Realtek High Definition Audio)' initialized
01:44:06.159: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
01:44:06.512: Switched to scene 'Scene'
01:44:06.512: [game-capture: 'Game Capture'] attempting to hook fullscreen process: explorer.exe
01:44:06.512: [game-capture: 'Game Capture'] cannot capture explorer.exe due to being blacklisted
01:44:06.513: ------------------------------------------------
01:44:06.513: Loaded scenes:
01:44:06.513: - scene 'Scene':
01:44:06.513: - source: 'Game Capture' (game_capture)
01:44:06.513: ------------------------------------------------

The "spacebar" doesn't show

What happened: When pressing spacebar, the "spacebar" icon doesn't change colour

What was supposed to happend: When pressing spacebar, the spacebar icon should change colour

Log file: I don't know where to find this

I can not find the obs folder

Describe the bug
I do not find the obs folder I did the processes I read in the folder sheet the obs folder is not there I checked in the x86 programs and programs folder
To Reproduce
Steps to reproduce the behavior: folder obs

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional information:

  • Plugin version 4.5
  • Full OBS Studio log

Additional context
Add any other context about the problem here.

NumPad arrows not registering

Hey!

I'm trying to set up an overlay where I have only 3 buttons, left arrow, right arrow and the Numpad up arrow that I use for jumping.

However I do not know what to write in order to have the Numpad up arrow to register. In the list of buttons this is what is says: 0xEE00 | VC_KP_8.

But even if I write it like that, or if I replace "VC_KP_8" with its code, it doesn't work. Could you please help me how I have to enter it into the ini file?
kep

Thank you!

No Plugin?

I downloaded the Source Code because the actual input overlay download isn't there. I only see Source Code as a zip file and a tar... . Anyways I see the source code, but there's no plugin in it, so I cant use it;.

Issues with mouse ini in release v3

So, the mouse overlay was disappearing when I added the ini. I looked at it and changed "1_layout_type=0" to "1_layout_type=1" and that fixed it. However, the side buttons were reversed, so I swapped them and that fixed that. However mouse wheel up and down weren't working, and I wasn't able to get that to work.

Crash

What happened:

What was supposed to happend:

Log file:
image

Keys with no "up" state

Describe the bug
When using a key with no natural up/down state (eg. scroll) the overlay does not display/update as expected.

To Reproduce

No input:

  1. Input scroll
  2. Do not provide input
  3. Overlay keeps scroll highlighted until input is provided

Constant Input:

  1. Provide high number of inputs (move cursor) for duration
  2. scroll
  3. Overlay only shows input for one frame, not visible

Expected behavior
Mouse overlay shows scroll inputs visibly

Screenshots
image

Additional information:

Minimal History not working correctly

Describe the bug
Minimal History will not display anything

To Reproduce
Install Input Overlay (4.7.2) normally and add an Input Overlay to OBS (Minimal Input History)

Expected behavior
It should work correctly and display keys when pressed

Screenshots
snag-4627
snag-4628
snag-4629
snag-4630

Additional information:

Additional context
This seems to be the only overlay that isn't working, everything else works :L

Switch Pro Controller Support?

I play steam games using my Switch pro controller, and It works great. I have gotten my pro controller to work with your plugin, but the buttons are in the x-box controller layout. Is there any way that you could release a preset that would light up the correct buttons when pressed? I have tried for hours but yet I am unable to get anything close to what I am looking for. I can get the button labels in the right spot, but then when I press x, y will light up and vice versa. If not, maybe you could give me an explanation on how to make my own? Maybe I'm missing something simple. If not, thanks anyway!

Feature request: show only the key currently being pressed

It would be nice (though potentially out of scope) to have a list of inputs that automatically scrolls and fades out after a certain number of seconds following the keystroke. For example, I press A, then S. It shows A, then pushes up the A, then shows the S, then the A fades out, then the S.

This would be the ideal situation for doing tutorials without wasting screen space on showing the entire keyboard (and also preventing people from missing quick keystrokes). Of course, I could probably use one of the many applications that already do this, but it would be perfect if it was directly integrated into my recording software so I can set it and forget it as well as not having it block my view.

Weird conflicts with Alt-Drag

What happened:

When uiohook.dll is loaded into OBS and altdrag is running on the system
when using the alt key and dragging to move windows on the system, alt-drag does not detect that the mouse key has been let go. Instead the user must click to let go of the window

What was supposed to happen:

application should not conflict, this can be tested by;
letting go of MB1, the window should stop moving with the cursor

WASD layout broken ?

When loading WASD preset there's no R, F or TAB keys, it looks like this:

obs64_2017-09-24_16-36-50

I've tried with both .ini files, the one from v1.0 and v1.1, same error.
However the config seems to be correct, those missing keys are specified in the fields key_order, key_width, key_height, key_row and key_col.

No way to determine when History should start a new line

This plugin is phenomenal for tutorials, but in applications where you're using a command line - in my case, Rhino 3d where you type the name of a command rather than a shortcut key - it's not useful.

I'm wondering if an option to determine what keys/clicks determine when you go to a new line. For instance, any time Ctrl, Space, Enter, or Right Click is pressed it starts a new line.

Combined Keys, shift + 1....

Hi, Im trying to set up multiple key with the keyboard overlay. In your .ini file, there's a line named key_order = . I try a lot of combination like 0x0036 && 0x0002, etc... Nothing working.

Mouse side buttons reversed (v4.5)

Hi, the side buttons on my mouse are reversed. I saw that in a previous version this was supposed to be fixed. Maybe it fixed it for some mice and broke it for others? Can this be reconfigured easily?

I'm using input-overlay v4.5, OBS 21.1.2, and have a Razer DeathAdder Chroma.

Can you create new install guide ?

i'm download input-overlay-master.zip
but when i open zip file > input-overlay-master folder> preset,data,ccl,.h,.c,.md,.hpp,.cpp
i dont know what it mean

your old install guild not have ( preset,data,ccl,.h,.c,.md,.hpp,.cpp )
i really like your input-overlay plugin ^^ but i cant use T^T
Thank for help

No Input entry in the menu

After following the installation video, I reloaded OBS but still can't see the new entry in the sources menu.

Is there anything I could provide for debugging?

EDIT:
Only the 64bit version doesn't show the new menu entry. The 32bit one works!

Plugin doesn't load in OBS 21.0.1

Downloaded the plugin and copied files to designated folders, OBS didn't load it.

Log file says:
LoadLibrary failed for '../../obs-plugins/64bit/input-overlay.dll': (null) (126)
Module '../../obs-plugins/64bit/input-overlay.dll' not loaded

32bit version behaves the same.

Please advise, and thank you for your time.

font || psd

Hi~
Would you mind provide the .psd file of the layout? Or what is the font of the "asdf"?
Thanks a lot!

key stroke won't register in some games

this is a great tool,but i've noticed that when i'm playing this MMORPG Guild Wars 2,the key strokes won't register. when I test it on OBS screen , it works just fine. but when i got back to the game(GW2 in this case), key strokes just won't be registered anymore. and what is even more strange is that when im in GW2, the alphabets won't register,but the tab, caps locks ,shift,ctrl ,enter ,space and back space will be correctly registered.
do you know what is the problem?
ps: some other games works just fine on my pc witcher 3 etc.

Input History Request

Input History fails to capture duplicate key presses. (see attached)
Also if possible an auto clear of history based on update interval or similar would be appreciated.

input history screen grab

Backquote is not triggered

I used the 0x0029 from:
#define VC_BACKQUOTE 0x0029

but when I press backquote/circumflex (the key to the right of the 1) nothing happens.

Arrow keys missing from uiohook.h

I think you should indicate somewhere in your ini file how to set arrow keys (Windows) on the overlay when modifying "2_key_order".

Left arrow: 2424832
Right Arrow: 2555904
Up Arrow: 2490368
Down Arrow: 2621440

Currently, the only arrows listed in the List you provided in the ini file are for the numpad.

EDIT: Nevermind, this highlights the key when ANY key is pressed. How would I set arrow keys to work with this overlay?

Incorrect folder location

Hello,

I found the bug to be happening while I'm using it on Fedora 28. What ends up happening is that the readme describing to move the files to /.config/obs-studio/plugins/ but:

  1. The plugins folder was not created and I attempted to install it into the plugins_conf
  2. I created the plugins folder but OBS will not pick up the plugin
  3. I put the .so file in /usr/lib64/obs-plugins/ and OBS will pick it up but the output will be
    error: os_dlopen(/usr//lib64/obs-plugins/input-overlay.so->/usr//lib64/obs-plugins/input-overlay.so): libuiohook.so.0: cannot open shared object file: No such file or directory
    As you can see, it's created additional / for the folders. I tried to look through the source code but I am not a programmer so my searching is limited where to look to change the path.

If you can get back to this thread or release an update (or even give some advice of how to stumble through the code to change it myself) it would be very much appreciated. Thank you.

Imput History

Hi
What happened: I try to use key icons instead plain text, using the samples arrow-key-icon, when i load .ini file, my OBS just crash, i will try to understand how .ini file works to apply to another layout that i made.

Theres someting wrong with this samples files, because i really cant use.

This is I have into .ini file:

.# Input Overlay config v.4
.# The amount of key icons in the texture
.1_icon_count=4
.# Dimensions of the keys
.1_icon_w=128
.1_icon_h=128
.# The order of the icon order using their key codes
.# Get them here (Search for "VC_" and then the key name):
.# https://github.com/univrsal/input-overlay/blob/master/libuiohook/include/uiohook.h#L137
.#2_icon_order=0xEE4D,0xEE50,0xEE4B,0xEE48
.2_icon_order=0xE048,0xE050,0xE04B,0xE04D"

In the 2 last lines, i change some keys from the github, bus still getting error, ignore the first dot.

And i attached a .png file and my log file.
arrow-keys
log.txt

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.