Jump to content

Detect joystick when plugged in?


YozY
 Share

Recommended Posts

Hi i'm looking for a way to detect a joystick (in particular it's the Logitech RumblePad II USB)

the idea is to run a game with preloaded settings

so if the joystick isn't plugged in, it loads the keyboard settings

but if the joystick is plugged in, it loads the joystick settings

any way to check if a joystick is connected to the system?

Link to comment
Share on other sites

Hi,

sorry for pointing that out, but I think having a script running all the time to check whether a joystick is plugged in and then start a game is not the best soultion.

Is there any other point behind it?

If not, I would start the script when needed after the pad has been plugged in. :lmao:

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Hi,

sorry for pointing that out, but I think having a script running all the time to check whether a joystick is plugged in and then start a game is not the best soultion.

Is there any other point behind it?

If not, I would start the script when needed after the pad has been plugged in. :lmao:

So long,

Mega

no no here's the thing

the script runs when you start the game

so when you want to play, you start the script to detect if a joystick is plugged in or not, and then it loads the keyboard or joystick settings and then it starts the game

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...