Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating Joystick Gremlin Plugins #10

Open
pyrho opened this issue Nov 3, 2020 · 3 comments
Open

Creating Joystick Gremlin Plugins #10

pyrho opened this issue Nov 3, 2020 · 3 comments

Comments

@pyrho
Copy link
Owner

pyrho commented Nov 3, 2020

No description provided.

@RangerGH
Copy link

A question on your article https://www.25.wf/posts/2020-11-03-joystick-gremlin.html. You say that THROTTLE_BUTTONS variable is a map referencing button numbers. Did you create that yourself of is it somewhere in the JG code. I haven't found it yet digging through the code. The same for VJOY_BUTTONS.

Your article really helped me get a better grasp of creating and using plugins for JG. The API Pages on JG are not that helpful as how to actually do it.

@pyrho
Copy link
Owner Author

pyrho commented Aug 26, 2021

Sorry for the late reply, THROTTLE_BUTTONS and VJOY_BUTTONS are my own variables to make the code more readable. They are defined here and here respectively.

Your article really helped me get a better grasp of creating and using plugins for JG. The API Pages on JG are not that helpful as how to actually do it.

That's exactly why I wrote this small post, thanks for letting me know ! :)

@MaxOLydian
Copy link

Quite late to the party, my apologies- but your post was extremely helpful to me, thank you!

I have another question- have you experimented at all with imports? I put all my button defs in another file, and would like to import them in my code files- but nothing seems to work. Well, not nothing- I can specify the button def files as plugins in their own right (as long as they appear before any plugin that references them), but I'd like to be able to use something like
import fa18_buttons_def
where I've got that file in the same general location as the plugin I've written.
I've tried a bunch of different thing, like using os.chdir(), explicitly specifying the path, and so on. I haven't messed around with setting PYTHONPATH and other similar things, as I don't want to change things globally. I'm relatively new to python, so perhaps my global change concerns are unwarranted- but I'd appreciate you sharing any experience you have here.

Thanks again for your previous efforts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants