Coder Social home page Coder Social logo

ericoporto / agsjoy Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 2.1 MB

[reverse engineered edition] Joystick for Adventure Game Studio in Linux. libagsjoy written by qptain_Nemo, for Linux, compatible with Wyz agsjoy.

License: MIT License

Makefile 1.12% C++ 96.53% Shell 0.46% C 1.89%
ags adventure-game-studio joystick sdl2

agsjoy's Issues

Pass enums, constants and other information for AGS Editor

Use something like below to pass needed enumerators and constants to the AGS Editor using something like below for the Windows DLL.

const char* scriptHeader =
  "//------------------------;\r\n"
  "//add enum for ePOV here;\r\n"
  "//------------------------;\r\n"
  ;

int  AGS_EditorStartup(IAGSEditor* lpEditor)
{
  // User has checked the plugin to use it in their game

  // If it's an earlier version than what we need, abort.
  if (lpEditor->version < 1)
    return -1;

  editor = lpEditor;
  editor->RegisterScriptHeader(scriptHeader);

  // Return 0 to indicate success
  return 0;
}

simplify windows and linux code to one

Use ifdefs to make the builds for Windows and Linux (something like below):

#ifdef __linux__ 
    //linux code goes here
#elif _WIN32
    // windows code goes here
#else

#endif

Problems with amd64 build?

Is there a particular reason why you only support i386 for now?

I was able to build libagsjoy.so successfully on amd64 by just installing libsdl2-dev:

$ file libagsjoy.so 
libagsjoy.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=a8ad0fb065e6572a7c72c71588639c1c0cb26edc, not stripped

This was on Debian buster (testing), however, not Ubuntu 16.04.

Do an OSX port

Apparently OSX is compatible with SDL2: https://wiki.libsdl.org/FAQMacOSX

Onitake suggested me to try using clang to build.

clang++ agsjoy.cpp -Wall -framework SDL2 -dynamiclib -o libagsjoy.dylib

SDL2 has to be shipped with the application (the game) - I still need to findout how.

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.