Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (780)
Games in Android Showcase (233)
games submitted by our members
Games in WIP (857)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JInput and Steam overlay  (Read 2527 times)
0 Members and 1 Guest are viewing this topic.
Offline tduindam

Senior Newbie

« Posted 2015-04-03 09:01:59 »

Hi all!

We are integrating steam support into Caromble! and we are running into a bit of trouble that we can't find a way around ourselves.

The problem is that after the Steam Overlay has been active, we are no longer getting any input into our game.

We are using JInput for the input handling.

Our current work-around involves restarting JInput every time we don't get input for a few seconds. The downside of this approach is that this makes the windows plugin a bit unstable (i.e. it starts missing some input). We could theoretically patch the windows client for our situation, but I fear that would only lead to more similar fixes for the other platforms we support. And also it feels like a bit of a nasty hack.

So here's my question. Does anyone have experience with the Steam Overlay and getting the focus back to the game? Any clue what else we could try??


Offline tduindam

Senior Newbie

« Reply #1 - Posted 2015-04-21 08:50:36 »

Just wanted to say, we fixed the bug  Grin. Or worked around it actually..

I'll post it here, maybe it helps someone else.

The problem is with the Raw input plugin for windows. Luckily, you can disable it:

AccessController.doPrivileged(new PrivilegedAction<Object>() {
        public Object run() {
            String os = System.getProperty("", "").trim();
            if (os.startsWith("Windows")) {  

                // disable default plugin lookup
                System.setProperty("jinput.useDefaultPlugin", "false");

                // set to same as windows 7 (tested for windows 8 and 8.1)
                System.setProperty("", "");

            return null;
Pages: [1]
  ignore  |  Print  

hadezbladez (761 views)
2018-11-16 13:46:03

hadezbladez (394 views)
2018-11-16 13:41:33

hadezbladez (758 views)
2018-11-16 13:35:35

hadezbladez (200 views)
2018-11-16 13:32:03

EgonOlsen (2401 views)
2018-06-10 19:43:48

EgonOlsen (2581 views)
2018-06-10 19:43:44

EgonOlsen (1486 views)
2018-06-10 19:43:20

DesertCoockie (2149 views)
2018-05-13 18:23:11

nelsongames (1967 views)
2018-04-24 18:15:36

nelsongames (2648 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!