I've done the tutorials in the wiki and I'd like to use the joystick in grey's tutorials for example. So in the config file I add a line for the character to go left if I press the button 1 :
KEY_LEFT = GoLeft
KEY_RIGHT = GoRight
JOY_1 = GoLeft; my line
But it doesn't do anything. I compiled with the Visual c++ 2008 and the files from orx-dev-msvs2008-1.3rc0.zip but I thought the joystick was included ?
I tried editing other config files from projects people posted on the forum and the joystick works. Also in the tutorial 10_standalone from 1.3rc0 and from the SVN the joystick doesn't work either when I add the line JOY_1 = CycleLanguage but it works if I edit the config file of the tutorial 10_standalone from the FreeBasic branch from the SVN. I tried with 2 different joysticks.
I tried to compile orxLIB from the SVN but vc2008 gives me warnings when linking (when compiling orxlib). I'm not very good at coding but it looks like it's simple to have the joystick but I don't manage to. So is it supposed to work by just editing the config file or do I have to compile a special version of orx ?
thanks for your help
Well, actually JOY_1 was working back in the days but there has been a change in orx on how joystick inputs are referred in config files.
In order to support multiple joysticks easily, you now have to specify which joystick you want to use. So for the first button on the first joystick, you now need to use JOY_1_1 instead of JOY_1. For the X axis on the second joystick, you need to use JOY_X_2, etc...
The file SettingsTemplate.ini should be up-to-date on the svn trunk and I'll check the wiki right now.
What warning do you get when you link the lib? Assuming you're building the embedded dynamic configs, if they are the glfw warnings, you can safely ignore them (I'll try to remove them in the future).
Hope this helps!
Out of curiosity, is Grumly a reference to a bear that makes cheap jokes?
EDIT: Apparently the wiki was outdated on that point, I just updated it.
Yes I'm named after grumly the bear that makes cheap jokes :cheer:
The warnings I get when compiling are lines refering to glfw like these :
Génération de code en cours
f:workspaceorxexternglfw-2.7libwin32win32_fullscreen.c(168) : warning C4748: /GS ne peut pas protéger les paramètres et les variables locales contre le dépassement de mémoire tampon locale, car les optimisations sont désactivées dans la fonction
f:workspaceorxexternglfw-2.7libwin32win32_fullscreen.c(72) : warning C4748: /GS ne peut pas protéger les paramètres et les variables locales contre le dépassement de mémoire tampon locale, car les optimisations sont désactivées dans la fonction
But now I get the joystick working I don't think I need to think about compiling orx again.
Thanks again for the fast help, I hope I manage to get my project far enough to show it here.
I guess a video is needed for non-French people:
Ça fait bizarre de voir les messages d'erreur en Français, je n'y suis pas habitué.
So yes, don't worry about those, I'll recompile GLFW with the proper flags at some point.
Well, yes and no. You should use the SVN version if you can as there's been a ton of fixes and improvements since the latest release. Including major ones for iPhone/Android. If I were you I'd stick with it.
My pleasure! Looking forward to learning more about your project.