Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7182559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:47:44+00:00 2026-05-28T17:47:44+00:00

I need to capture joystick input using C or Java (whichever is easier). There

  • 0

I need to capture joystick input using C or Java (whichever is easier).

There are answers to similar questions but they all use C++ or C#.

The program only needs to get the direction and amount by which the joystick is tilted.
I’m using Windows7, so I’ll probably need to use winmm.dll as is explained here.
I would appreciate if someone could explain how to do so in C or Java.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:47:45+00:00Added an answer on May 28, 2026 at 5:47 pm

    There are premade libraries for both languages. The more important question would be the language you have to use or which one you’d prefer primarily. It doesn’t necessarily make sense to add C code just to add such functionality to a Java program. In a similar way, you wouldn’t want to call Java from C, just to get joystick input.

    First hit on Google for “java joystick” has been this one. Haven’t tried it yet.

    As for C++ code (and most likely C# too) you should be able to use the same code in C, assuming it’s pure Windows API code (cause that one is in C too). So you shouldn’t have any issues adapting these.

    Edit:
    Regarding the answer you linked: You should be able to use this solution 1:1 in C (in Java you’d have to write code essentially doing the same). But instead of declaring everything yourself, just #include <windows.h> and you should be ready to go (in C).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Selenium 2 (in IE only) and I need to capture all page
I need to capture the input stream from a microphone in my application, which
I need to capture either \d+\.\d+ or \d+ but nothing else. For instance ,
I need to capture audio from a microphone using a flash object in a
I need to capture all mouse events on a .NET's WebBrowser, process them and
My problem is I need to capture a keypress but at any given time
I need to capture a tab keypress event on some dynamic inputs, but the
I need to capture all links in a given html. Here is sample code:
I am using jquery mobile datepicker, i need to capture the calendar click event,
I need to capture portion of user screen usign java applet. It is easy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.