Input Overlay

Input Overlay v5.0.5

univrsal

Active Member
Hey guys, is it possible to just show a visual image of what key you pressed instead of the text or the entire keyboard at once? Like if I press the "K" button, I want an image of the "K" button to dissolve in and then out on the screen

Thanks!
The closest you'll get to that is the key icons in input history. It displays icons instead of just text.

Luís Cherubini made a preset for input-history to make it look like this:
YrErREv.png

You can get the preset here.
 

SuperSwagger

New Member
I haven't tried the plugin on ubuntu, but i would assume that it should work.
Just follow the instructions in the main post under "Linux Version". There's also a video in which I show the process. It's under OpenSuse, but I'm pretty sure that the folder paths should be the same under Ubuntu. Since Ubuntu doesn't offer libuiohook in its repositories you'll have to install it manually like I show in the video, the download for the precompiled version of libuiohook is also included in the instructions.
That worked just fine, thanks!

P.S.: It would be great if you included the overlay I posted in your next update ;)
 

ThatMouse

New Member
Hi, I just downloaded and installed this plugin (I'm completely new at OBS and recording my gameplay) but I'm absolutely in love with your work on this.

That said, I'm using it to capture WASD and mouse button + movement in Guild Wars 2, but for some reason the plugin doesn't seem to pick up any input when I'm actually in game.

If I'm in OBS or on a browser, it'll pick it up. But not when I'm in Guild Wars 2.

Do you know what I might be able to do to fix it?
 

univrsal

Active Member
Hi, I just downloaded and installed this plugin (I'm completely new at OBS and recording my gameplay) but I'm absolutely in love with your work on this.

That said, I'm using it to capture WASD and mouse button + movement in Guild Wars 2, but for some reason the plugin doesn't seem to pick up any input when I'm actually in game.

If I'm in OBS or on a browser, it'll pick it up. But not when I'm in Guild Wars 2.

Do you know what I might be able to do to fix it?
Someone else had the same issue with Guild Wars 2, they fixed it by running OBS studio as administrator, might work for you as well.
Also glad you like the plugin
 

2gethR

New Member
Hi.

I'm having trouble creating my own key layout with your program. I'm not even sure how to edit the settings so these things can work. For example, how come I have to enter 358 on 1_key_abs_w and 1_key_abs_h when in my PNG, my buttons are 100x100 pixels?

Everything just seems incredibly confusing.

This is what I'm working towards: https://i.imgur.com/nZmNzgm.png (Slide is Shift and Jump is Space)
For some reason, I cannot combine mouse buttons and keyboard buttons in the same .ini file, but that's not the point.

This is my current setup: https://i.imgur.com/L4Zo1nR.png / https://i.imgur.com/dqb50md.png
Of course, I can still set up a bunch of stuff with cropping in OBS, if I could ever get it to work. The problem is, that nothing is clear and it feels incredibly counterintuitive. Do you have any idea what I need to do for this to finally work out?
 

univrsal

Active Member
Hi.

I'm having trouble creating my own key layout with your program. I'm not even sure how to edit the settings so these things can work. For example, how come I have to enter 358 on 1_key_abs_w and 1_key_abs_h when in my PNG, my buttons are 100x100 pixels?

Everything just seems incredibly confusing.

This is what I'm working towards: https://i.imgur.com/nZmNzgm.png (Slide is Shift and Jump is Space)
For some reason, I cannot combine mouse buttons and keyboard buttons in the same .ini file, but that's not the point.

This is my current setup: https://i.imgur.com/L4Zo1nR.png / https://i.imgur.com/dqb50md.png
Of course, I can still set up a bunch of stuff with cropping in OBS, if I could ever get it to work. The problem is, that nothing is clear and it feels incredibly counterintuitive. Do you have any idea what I need to do for this to finally work out?
Have you watched the tutorial video on how to create ini files? That might clear some things up
*_abs_w and *_abs_h is the size of a normal key.
Your keys will have to be exactly this size in the texture file or any multiple of that.
The multiplier is defined in *_key_width and *_key_height. So any normal sized key would have both values set at '1'.
This'll give you some issues since in the overlay you want to create the 'jump' and 'slide' keys aren't twice as big as the other buttons.

I know it's confusing, which is why I'm working on making this process easier, but with this being a one man project the progress is rather slow.
 

univrsal

Active Member
I apologize.
What I did is use the .ini file for the wasd-minimal keyboard that was in the "presets" folder of the download. I figured it was fine to simply edit it from there.

Attaching the file would not work: https://pastebin.com/MAwqiqgr
Ok, so this was partially my fault. Currently the width and height are stored in an unsigned 8 bit integer, which only go up to 255, since your buttons are over that it wrapped around.
I fixed this in 4.7.1 which is the latest release on github.
5YUaSWk.png

This is as close as I could get. You'll have to fix your texture and config though to make it work (To fix the ugly cropping)
First, make sure there's a 1 pixel transparent border around the entire texture.
Then make sure that there's a 3 pixel gap between each individual button.
Next resize the buttons that should be twice the size in the overlay to twice the size in the texture as well.
Lastly you'll have to adjust the '1_texture_v_space' to 9, because there's five normal sized buttons in one row plus two double sized ones which add up to nine.

I'm sorry that the process is so messy but it'll be a lot easier when I get the tool along version 5 finished
 

Physecks

New Member
Is it possible for you to make a layout with the keys i highlighted with the red dots in the file I attached with the same font and style as the wasd presets? I have given it a go at making one but im really just not getting it :(
 

Attachments

  • 400px-KB_United_States.svg.png
    400px-KB_United_States.svg.png
    12.6 KB · Views: 137

univrsal

Active Member
Is it possible for you to make a layout with the keys i highlighted with the red dots in the file I attached with the same font and style as the wasd presets? I have given it a go at making one but im really just not getting it :(
No, sorry. I did do this in the past, but I just do not have the time to create presets for everyone.
Creating presets will get easier when I'm done with version 5.0, though.
Until then you can start by trying to create the texture first. I already created a tutorial showing how it works.
 

Physecks

New Member
No, sorry. I did do this in the past, but I just do not have the time to create presets for everyone.
Creating presets will get easier when I'm done with version 5.0, though.
Until then you can start by trying to create the texture first. I already created a tutorial showing how it works.
Alright man thanks for replying, i might just not use one because i cant show the keys i always press so i might as well remove the clutter since viewers cant see some stuff with it on.
 

fatihG_

New Member
Do you by any chance have the ps4 controller png and ini file completed?
Hi, sorry no I haven't.

I have been using a super minimalistic input overlay for myself. Which literally just show the buttons that are being pressed.
Since most games I play on stream are 2d platformers I am in no need of analogue sticks.
And a Snes style custom overlay I was commissioned to make. (with that particular streamers branding and what not)

I was thinking about making a ps4 and all the other pads as compensation if the developer of this tool was thinking about adding support for them.

You can always commission me to create custom controller overlays though! =P
 

fatihG_

New Member
Ah you know what.... I went ahead and created a DS4 config.

Ill share all the other config I made as well.
So a total of 3 presets.
DS$ (+alt, more vibrant button colours)
SNES (+alt, US version)
Minimalistic (PS4 buttons)


@universallp feel free to include them in your presets as well.
A mention/credits/link to my site would be greatly appreciated!

http://fagurd.com/OBS/inputoverlay/

Open spoiler for a preview
previews.jpg
 

univrsal

Active Member
Ah you know what.... I went ahead and created a DS4 config.

Ill share all the other config I made as well.
So a total of 3 presets.
DS$ (+alt, more vibrant button colours)
SNES (+alt, US version)
Minimalistic (PS4 buttons)


@universallp feel free to include them in your presets as well.
A mention/credits/link to my site would be greatly appreciated!

http://fagurd.com/OBS/inputoverlay/

Open spoiler for a preview
previews.jpg
Wow, they look pretty good. I'll definitely add them, and later convert them to the new config system.
I'll include your website and username inside each zip file under CREDITS.txt, if that's okay with you
 

d3x

New Member
Hey,
first of all: Thank you for all your work! Great Plugin!
I am trying to set this up for hours now but i still have 2 Problems.

first: No matter on which place i place the spacebar, its not going to get drawn? if the size is > 1.
If i set the size of the spacebar to 1,1 it shows a part of the space bar that gets shown correctky.
if i set it to 2 or 3 it does not get drawn at all.

second:
i use the right alt key instead of left control. some games do not recognize "alt right" at all (for example ow)
so i reprogrammed my right alt to be "page up". it works everywhere just fine (for example in all browsers to scroll up)
your documentation tells me:
"#define VC_PAGE_UP 0x0E49"
but if i press the button nothing happens.
(PAGE UP works in obs for example to jump in the scene window)
i suppose page up is another hex value on the de keyboard?


INI:
# Input Overlay config v.3
#
# The amount of keys in the overlay
1_key_count=21
# The type of layout (1 for mouse, 2 for keyboard)
# Make sure that this value is before all values below!
1_layout_type=2
# Amount of Key rows
1_key_rows=5
# Amount of Key Coloumns
1_key_cols=7
# Global Key size of a key
1_key_abs_w=157
1_key_abs_h=128
# Space vertically and horizontally (Negative numbers for offset left/up offset)
1_key_space_v=5
1_key_space_h=-20
# The amount of buttons per row in the texture file
1_texture_w=9
# The space between two rows of textures (usually button height * two) if a button takes up
# two times the height or more adjust this value (3px gap will be added by the plugin)
1_texture_v_space=256
###
#
# Order of buttons in the texture file
# Special keys need hexadecimal value
# Get them here (Search for "VC_" and then the key name):
# https://github.com/univrsal/input-overlay/blob/master/libuiohook/include/uiohook.h#L137
#
# The Texture needs to contain the buttons in that oder going from left to right
# With the top row containing the texture for unpressed buttons and the bottom
# row for pressed buttons. The plugin calculates a 3px gap between all textures
# and 1 px border around the entire texture
# After the amount of buttons specified in texture_w the plugin will stop searching
# for textures to the right and start in the next row
#
2_key_order=0x0006,0x0007,0x0008,0x0009,0x000A,0x0013,0x0014,0x002C,0x0039,0x0016,0x0017,0x0018,0x0019,0x0021,0x0022,0x0023,0x0024,0x0025,0x0032,0x0033,0x0E49
#
# Width & Height of the buttons in the order specified above
# These values are multipliers
# Meaning '1' resultes in a width/height that is specified in key_w/key_h
# '2' results in key_w/key_h * 2
2_key_width=1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,
2_key_height=1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
# Coloumn = X, Row = Y postion of the buttons in the order spcified above
# Once again not absolute numbers but rather multipliers
# E.g. key_row=3 means that the y position is 3 times the button height
2_key_row=0,0,0,0,0,1,1,1,4,1,1,1,1,2,2,2,2,2,3,3,4
2_key_col=1,2,3,4,5,0,1,2,0,3,4,5,6,0,1,2,3,4,3,4,4
 

Attachments

  • warframe.png
    warframe.png
    172.3 KB · Views: 147
  • layout.PNG
    layout.PNG
    46.4 KB · Views: 140
Last edited:
Top