Search found 31 matches

by mrSpaceman
Wed Aug 13, 2014 3:06 pm
Forum: Support
Topic: OISInput.cfg: input text fields don't work
Replies: 57
Views: 15413

Re: OISInput.cfg: input text fields don't work

FreeOrion doesn't have to use a library called "libois". If set up to produce "libfreeorionois" or "libextremebanana", and then set up to load the same when running, the existence of an installed libois on the system is presumably irrelevant. Then there might not be an...
by mrSpaceman
Wed Aug 13, 2014 1:45 pm
Forum: Support
Topic: OISInput.cfg: input text fields don't work
Replies: 57
Views: 15413

Re: OISInput.cfg: input text fields don't work

The core problem is that the OIS Linux driver (others may be affected as well) updates its internal key state buffer only when it receives key up and key down events. Keyboard state changes that occur while the application does not have keyboard focus do not send events to the application so the in...
by mrSpaceman
Sat Aug 09, 2014 7:37 pm
Forum: Programming
Topic: Should SDL be used as the GUI instead of Ogre?
Replies: 78
Views: 11142

Re: Should SDL be used as the GUI instead of Ogre?

I haven't tried the patch yet. However, I found this on the Ogre site: http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Using+SDL+Input&structure=Cookbook It might mean that Ogre can persist in the project. This might be a good thing if 3D graphics are used in the future), whilst allowing for ...
by mrSpaceman
Thu Aug 07, 2014 3:35 pm
Forum: Programming
Topic: Should SDL be used as the GUI instead of Ogre?
Replies: 78
Views: 11142

Re: Should SDL be used as the GUI instead of Ogre?

Rapid work! 8) My big question (I am monomaniacal about this point) is whether using SDL can help fix the Linux Alt-TAB issue. Do you think your patch would be able to allow this to be tested? :?: I'll probably give your experimental patch a whirl and have a look at the effect on the Linux input (an...
by mrSpaceman
Wed Aug 06, 2014 8:58 pm
Forum: Compile
Topic: Building OIS instead of using the shared library
Replies: 14
Views: 5675

Re: Building OIS instead of using the shared library

Yes, I found the equivalent GUI version: cmake-gui and had a go with that. I'd guess it's more or less the same thing, without seeing the Curses version. I was actually trying to cmake the OIS source (to avoid having to use autotools). It didn't work straight away (It was upset that a CMakeLists.txt...
by mrSpaceman
Wed Aug 06, 2014 3:29 pm
Forum: Support
Topic: OISInput.cfg: input text fields don't work
Replies: 57
Views: 15413

Re: OISInput.cfg: input text fields don't work

I am now trying the newest version of libOIS and I'm going to try a few things in its codebase to try and work out the problem. It might be futile as the project isn't maintained, etc., but I might uncover something useful. :idea: Is there no option of creating a fork of the code (call it "Free...
by mrSpaceman
Wed Aug 06, 2014 3:24 pm
Forum: Compile
Topic: Building OIS instead of using the shared library
Replies: 14
Views: 5675

Re: Building OIS instead of using the shared library

Once I'd done the prescribed clean up of the make and cmake files things went well.

The other thing to say is that OIS version 1.4.0 does not fix the Linux Alt-TAB issue.
by mrSpaceman
Wed Aug 06, 2014 3:20 pm
Forum: Support
Topic: OISInput.cfg: input text fields don't work
Replies: 57
Views: 15413

Re: OISInput.cfg: input text fields don't work

Not that I have detected.
by mrSpaceman
Wed Aug 06, 2014 2:52 pm
Forum: Compile
Topic: Building OIS instead of using the shared library
Replies: 14
Views: 5675

Re: Building OIS instead of using the shared library

Sorry, I found this on the wiki (http://freeorion.org/index.php/Compile_ ... cy_Changes):

Code: Select all

rm CMakeCache.txt
make clean
by mrSpaceman
Wed Aug 06, 2014 2:46 pm
Forum: Support
Topic: OISInput.cfg: input text fields don't work
Replies: 57
Views: 15413

Re: OISInput.cfg: input text fields don't work

I tried both. And also with capture calls after each keyRelease call. No luck :(
by mrSpaceman
Wed Aug 06, 2014 2:44 pm
Forum: Compile
Topic: Building OIS instead of using the shared library
Replies: 14
Views: 5675

Re: Building OIS instead of using the shared library

Oh, but it goes on.... So I managed to install libOIS (it says it's version 1.4.0 ) from source and it's put itself in a different place in the tree to previously ( /usr/local/lib/ rather than /usr/lib/x86_64-linux-gnu/ ). I'm sure there's a way to specify where to install the new shared library; ho...
by mrSpaceman
Wed Aug 06, 2014 1:58 pm
Forum: Compile
Topic: Building OIS instead of using the shared library
Replies: 14
Views: 5675

Re: Building OIS instead of using the shared library

With experience comes great wisdom, perhaps? Thanks for the run down the OIS compiling. It was a little off-topic, though still an OIS compiling issue. EDIT: Just to add that the solution was to add -lX11 to the Makefile.am file in the demos subfolder like: ConsoleApp_LDADD = -lOIS -lX11 and FFConso...
by mrSpaceman
Wed Aug 06, 2014 1:53 pm
Forum: Support
Topic: OISInput.cfg: input text fields don't work
Replies: 57
Views: 15413

Re: OISInput.cfg: input text fields don't work

I did try adding the keyboard->capture(); line. It didn't work. I'm going to give it a little more time (later), then admit defeat. As you've said in another thread ( http://www.freeorion.org/forum/viewtopic.php?f=24&t=8988&p=71053 ) OIS is broken and it's not currently being developed. Perh...
by mrSpaceman
Wed Aug 06, 2014 12:50 pm
Forum: Compile
Topic: Building OIS instead of using the shared library
Replies: 14
Views: 5675

Re: Building OIS instead of using the shared library

Thread in programming sub-forum discussing SDL as an OIS replacement:

viewtopic.php?f=9&t=8989
by mrSpaceman
Wed Aug 06, 2014 12:49 pm
Forum: Programming
Topic: Should SDL be used as the GUI instead of Ogre?
Replies: 78
Views: 11142

Should SDL be used as the GUI instead of Ogre?

To continue a discussion started in another thread: http://www.freeorion.org/forum/viewtopic.php?f=24&t=8988 I was working on fixing a specific bug related to Alt-TAB -ing in Linux. It seems that the solution might be to change the code handling the GUI to something which doesn't have this bug u...