ericoporto / agsjoy Goto Github PK
View Code? Open in Web Editor NEW[reverse engineered edition] Joystick for Adventure Game Studio in Linux. libagsjoy written by qptain_Nemo, for Linux, compatible with Wyz agsjoy.
License: MIT License
[reverse engineered edition] Joystick for Adventure Game Studio in Linux. libagsjoy written by qptain_Nemo, for Linux, compatible with Wyz agsjoy.
License: MIT License
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;
}
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
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.
I think its called rumble or vibration, as this would give immersion to ags games using joysticks.
Some discussion here: https://discourse.libsdl.org/t/difference-between-joysticks-and-game-controllers/24028/2
This should give better future proof support and cross plataform support for Gamepads
Give support for MFI controllers
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.
This plugin won't work if the SDL2 Digi audio driver is being used on Linux.
Trying to Poll Events crashes the computer, as is it won't poll events but it also won't work - will simply do nothing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.