Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installed input overlay but inputs won't show up. #160

Open
Arvidetc opened this issue Mar 28, 2021 · 22 comments
Open

Installed input overlay but inputs won't show up. #160

Arvidetc opened this issue Mar 28, 2021 · 22 comments

Comments

@Arvidetc
Copy link

Describe the bug
Input overlays show up on the preview but inputs would not show up in the preview.

To Reproduce
Unzip, paste files in obs studio's file location, replace files, used presets shipped with zip file, use input overlays as sources on a scene.

Expected behavior
To function properly as the video indicated

Screenshots
image
image
image

Additional information:

Additional context
N/A

@univrsal
Copy link
Owner

what keyboard layout are you using?

@convict-git
Copy link

convict-git commented Apr 11, 2021

I'm having the same issue.
Using OBS Studio 26.1.1 (Linux)
I'm able to add the source for input overlay but the keys are not captured by the preview.
I can assure that libuiohook.so is present in /usr/lib and /usr/lib64 and input-overlay.so was successfully loaded as module.

UPD:
I tried testing the build of libuiohook by running the demo which works in itself. I can also see libUIOHook in obs logs which means it's loaded there.

UPD2
Seems like running obs with sudo obs worked. Any reason for it requiring sudo permissions?

@univrsal
Copy link
Owner

idk are you running obs through flatpak or snap?

@convict-git
Copy link

convict-git commented Apr 13, 2021

No. Neither.
I did the usual download from sudo apt-get install obs-studio. Is it not the recommended way? I'm using Ubuntu 20.04.

@univrsal
Copy link
Owner

what version of libuiohook are you using?

@convict-git
Copy link

convict-git commented Apr 14, 2021

I'm building libuiohook from kwhat/libuiohook as mentioned in their README. (The branch is set to 1.2 by default)

Screenshot from 2021-04-14 15-16-06
The build is successful and I verified it by running the demo provided which works fine.
Till this point, I cannot see Input Overlay as a source in obs.

After the build, the dist/lib has the following content.
Screenshot from 2021-04-14 15-25-29

I copy all the three .so files i.e. libuiohook.so libuiohook.so.1 libuiohook.so.1.2.0 to /lib, /lib64, /lib64/lib, /usr/lib, /usr/lib64, /usr/lib64/lib (Yes, all possible combinations!)

At this point, I still cannot see input-overlay as a source in obs.

However, if I copy /lib/libuiohook.so to /lib/libuiohook.so.0 and similarly /usr/lib/libuiohook.so to /usr/lib/libuiohook.so.0 (Note .0 wasn't present initially), I can now see Input Overlay as source in obs. I can successfully add presets/wasd/wasd.png as an Overlay image file and presets/wasd/wasd-full.ini as a
Layout config file and in fact see an amazing wasd keyboard overlay on my screen.
Screenshot from 2021-04-14 15-38-36

BUT the keyboard overlay doesn't show key presses yet.
However, if I run obs with sudo, $ sudo obs, the keyboard overlay, does in fact shows the key presses and work normally.

(Though I'm unable to get sound in sudo mode so can't work with that most probably because of permissions of pulseaudio that asks for system-wide permissions. Also, a lot of other things break in obs when running as sudo so it's not an option to go for)

I'd appreciate your help in fixing it out.

@univrsal
Copy link
Owner

Idk, what your setup is. Can you try installing this version? The input-overlay folder goes into ~/.config/obs-studio/plugins and you need to use the presets created with the build. That version ships libuiohook, if it still doesn't work it's something on your side

@convict-git
Copy link

Idk, what your setup is. Can you try installing this version? The input-overlay folder goes into ~/.config/obs-studio/plugins and you need to use the presets created with the build. That version ships libuiohook, if it still doesn't work it's something on your side

I'll try that. Thanks a lot!

@convict-git
Copy link

Idk, what your setup is. Can you try installing this version? The input-overlay folder goes into ~/.config/obs-studio/plugins and you need to use the presets created with the build. That version ships libuiohook, if it still doesn't work it's something on your side

@univrsal Yes, that indeed worked like a charm! Thanks a lot!

@convict-git
Copy link

convict-git commented Apr 15, 2021

Is there any way I can get the full qwerty preset for JSON kind of configuration? Or is it possible to port the .ini to .json?

@univrsal
Copy link
Owner

currently not

@univrsal
Copy link
Owner

I've tried the latest pre release build and can't reproduce this. I don't know if it's an issue with the old version, but somebody that had the issue could try the pre-release and see if it's still an issue

@simbark1999
Copy link

simbark1999 commented May 14, 2021

I'm on the latest pre-release build and using OBS 27.0.0-rc4 w/ admin privs but I'm having the same issue. Overlay shows up just fine but no inputs are registered whatsoever. I can't get gamepad, mouse, or keyboard inputs to show up. On Windows 10 btw.

@univrsal
Copy link
Owner

I'm on the latest pre-release build and using OBS 27.0.0-rc4 w/ admin privs but I'm having the same issue. Overlay shows up just fine but no inputs are registered whatsoever. I can't get gamepad, mouse, or keyboard inputs to show up. On Windows 10 btw.

Can you post your obs studio log?

@takaliuang
Copy link

Is there any way I can get the full qwerty preset for JSON kind of configuration? Or is it possible to port the .ini to .json?

I also can't find the .json file in the folder preset, only .ini. Any solution?

@univrsal
Copy link
Owner

Is there any way I can get the full qwerty preset for JSON kind of configuration? Or is it possible to port the .ini to .json?

I also can't find the .json file in the folder preset, only .ini. Any solution?

Download the pre-release

@takaliuang
Copy link

Is there any way I can get the full qwerty preset for JSON kind of configuration? Or is it possible to port the .ini to .json?

I also can't find the .json file in the folder preset, only .ini. Any solution?

Download the pre-release

Got it, installed the 2019 version...it worked well as far

@simbark1999
Copy link

simbark1999 commented May 19, 2021

Not sure what I did but I'm getting inputs to show now. Maybe my computer just needed a restart. I may have mixed-and-matched some files from different release versions without realizing it.

@khimaros
Copy link

Idk, what your setup is. Can you try installing this version? The input-overlay folder goes into ~/.config/obs-studio/plugins and you need to use the presets created with the build. That version ships libuiohook, if it still doesn't work it's something on your side

FWIW, this build seems to have expired and more recent CI builds don't include the libuiohook.so

@khimaros
Copy link

for anyone using wayland, this is probably a blocker kwhat/libuiohook#100

@univrsal
Copy link
Owner

Idk, what your setup is. Can you try installing this version? The input-overlay folder goes into ~/.config/obs-studio/plugins and you need to use the presets created with the build. That version ships libuiohook, if it still doesn't work it's something on your side

FWIW, this build seems to have expired and more recent CI builds don't include the libuiohook.so

They should, but you should use the pre-release instead.
https://github.com/univrsal/input-overlay/releases

@RKProgram
Copy link

RKProgram commented Sep 12, 2022

i'm on obs 28.0.1 and on the version 5.0.0 and i have admin privileges but i cant get any inputs to show
https://obsproject.com/logs/qtQYdy-mKwVT-t1G

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants