Giter Site home page Giter Site logo

Comments (6)

monwarez avatar monwarez commented on August 23, 2024

One thing I does not understand, why MegaGlest need force feedback ?
For disabling HAPTIC , you can apply this patch

--- source/shared_lib/include/platform/sdl/platform_main.h.orig 2016-03-27 01:19:15 UTC
+++ source/shared_lib/include/platform/sdl/platform_main.h
@@ -666,8 +666,14 @@ int mainSetup(int argc, char **argv) {
             }
        }
        else {
+                auto failTimer =       (SDL_Init(SDL_INIT_TIMER) < 0);
+                auto failAudio =       (SDL_Init(SDL_INIT_AUDIO) < 0);
+                auto failVideo =       (SDL_Init(SDL_INIT_VIDEO) < 0);
+                auto failJoy   =       (SDL_Init(SDL_INIT_JOYSTICK) < 0);
+                auto failGC    =       (SDL_Init(SDL_INIT_GAMECONTROLLER) < 0);
+                auto failEvents=       (SDL_Init(SDL_INIT_EVENTS) < 0);
                 if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
-                if(SDL_Init(SDL_INIT_EVERYTHING) < 0)  {
+                if(failTimer || failAudio || failVideo || failJoy || failGC || failEvents)  {
                        if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
                        std::cerr << "Couldn't initialize SDL: " << SDL_GetError() << "\n";
                        return 3;

from megaglest-source.

filux avatar filux commented on August 23, 2024

Well as I know MG doesn't need it (at least yet) but simple "init all" is very tempting 😃 when all works on linux & windows & macos where are done most/all of our tests.

Do you know something about: does someone is working on adding HAPTIC support for BSD? and how advanced is such work?

from megaglest-source.

monwarez avatar monwarez commented on August 23, 2024

I made a port update for 3.12.0: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205485 , with the previous patch. From what I understand, the problem with HAPTIC support is that its use some GNU/Linux specific events (I suppose in kernel space ?), and I know that FreeBSD is not intended to be a GNU/Linux OS. I think it will be necessary to add HAPTIC support in SDL2 code directly.
Update: version 3.12.0 are on the port with patch to not load HAPTIC module
The final patch used for HAPTIC are here

from megaglest-source.

monwarez avatar monwarez commented on August 23, 2024

Do you have this issue with the version 3.12.0 on the port ? issues: #72, and #73

from megaglest-source.

filux avatar filux commented on August 23, 2024

Hehe, I am not a FreeBSD user :). Feel free to comment those issues about, can you reproduce them or not. Two voices are better than 1 ;).
...and v3.12.0 is based on later commit than tests were done :).

My last test was done ~ creation date of this issue and was related only with this issue.

from megaglest-source.

monwarez avatar monwarez commented on August 23, 2024

I am sure that I don't have issue #73 (maybe it was OpenAL fault after all) , for the other #72 , I need to launch it on a terminal to see if error pop up. After some quick test I don't have issue #72

from megaglest-source.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.