The instructions on the website say install "JavaFX", find the files "JMC.dll" and "JMC.jar" and then move them into the libraries/jmcvideo/library/ folder. Only thing is I've installed both the JavaFX SDK and the JavaFX production suite and CANNOT FIND THE EFFIN' FILES. I've done a whole computer-wide search and they don't turn up. Where do I get them?
"3) Download JavaFX 1.2 for your platform from the javafx.com site. Find the appropriate JMC files and copy them into the jmcvideo library directory you have created. For Windows, you will need to find the files jmc.dll and jmc.jar."
First of all the printSticks() function prints nothing. So I don't know how I'm gonna get the sticks to work. Do I use sliders? The printSliders() gives me an "X Axis Absolute", "Y Axis Absolute", "X Axis Rotation", "Y Axis Rotation" and "Z Axis Absolute." What are these exactly? I'm sorry I don't understand.
My biggest issue though is I get errors with the "HandleButton1Press" lines. Both the Press and Release lines give me this error: "error on plug: >handleButton1Press< proControll found no method with that name in the given object.
Can anyone help me? I found numerous forum posts where people have seemed to get this work with XBOX 360 controllers but whenever I try to use their code I fail.
EDIT: Well I figured out the "handle" problems fairly quickly. Didn't notice I needed a function for that :X I'm still curious about getting the sticks to work though.
EDIT 2: I got the buttons working fine with the plug functions. I'm just curious about the sticks now.
EDIT 3: So the sticks do work with the sliders. Interesting. Since the Absolute Axis' corresponded to the left stick I'm assuming the rotations will work for the right stick. This is all pretty kick-ass now that I've got it working!
EDIT 4: I've been working on this for a bit and mapped out the whole controller. The only problem is I can't figure out if the right trigger is mapped or not. It doesn't show up. Here's what I got for mapping out the XBOX 360 controller:
Buttons
0 A
1 B
2 X
3 Y
4 LB
5 RB
6 SELECT
7 START
8 LSTICK (push)
9 RSTICK (push)
10 DPAD (mapping info below)
Sliders
0 Y Axis absolute (Left Stick Y)
1 X Axis absolute (Left Stick X)
2 Y Rotation absolute (Right Stick Y)
3 X Rotation absolute (Right Stick X)
4 Z Axis absolute (Left Trigger!)
DPAD CoolieHat Mapping
0.0 Nothing
1.0 Top Left
2.0 Top
3.0 Top Right
4.0 Right
5.0 Bottom Right
6.0 Bottom
7.0 Bottom Left
8.0 Left
Is there anyway the Z Axis could be passing two different values? One for left and one for right? Otherwise I have no idea where else to look for the right trigger lol.
EDIT 5: I figured it out. The Z Axis' value is positive when using the left trigger and negative when using the right trigger. BOOM! Problem solved. I'll post my updated code in a second just in case someone has this problem in the future.