Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
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 2197 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??

Thanks!

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:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
AccessController.doPrivileged(new PrivilegedAction<Object>() {
        public Object run() {
            String os = System.getProperty("os.name", "").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("net.java.games.input.plugins", "net.java.games.input.DirectInputEnvironmentPlugin");

            }
            return null;
        }
    });
Pages: [1]
  ignore  |  Print  
 
 

 
ivj94 (586 views)
2018-03-24 14:47:39

ivj94 (49 views)
2018-03-24 14:46:31

ivj94 (383 views)
2018-03-24 14:43:53

Solater (63 views)
2018-03-17 05:04:08

nelsongames (110 views)
2018-03-05 17:56:34

Gornova (159 views)
2018-03-02 22:15:33

buddyBro (704 views)
2018-02-28 16:59:18

buddyBro (93 views)
2018-02-28 16:45:17

xxMrPHDxx (494 views)
2017-12-31 17:17:51

xxMrPHDxx (734 views)
2017-12-31 17:15:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
java-gaming.org 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‑gaming.org
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!