Thread: Bug Report Phantom controller input
View Single Post
Splat

JCF Member

Joined: Jan 1970

Posts: 14

Splat has disabled reputation

Sep 10, 2019, 11:06 PM
Splat is offline
Quote:
Originally Posted by French View Post
Then using the buttons changes the values in the following ways.
  1. Pressing Left changes dwXpos to 0 and pressing Right changes it to 65535.
  2. Pressing Up changes dwYpos to 0 and pressing Down changes it to 65535.
  3. Using the + and − buttons changes dwZpos: 100 ⇔ 0; 75 ⇔ 16383; 50 ⇔ 32767; 25 ⇔ 49151; 0 ⇔ 65535.
  4. dwButtonNumber always shows the number of non-arrows buttons that are pressed, except according to point 6. So it can go from 0 to 7.
  5. Pressing any button gets dwButtons increased of 2 power button number minus 1. Say button number is n, then pressing that button adds 2^(n − 1) to dwButtons, and releasing it removes that same amount. E.g. pressing button 3 adds 4 (which is 2^(3 − 1)), pressing buttons 8 and 1 adds 129 (which is 2^(8 − 1) + 2^(1 − 1)). This is impacted by point 6 just below.
  6. Pressing buttons 1 to 6 at once (so the six buttons at the same time) is identical to pressing just buttons 4 and 6 (no matter which other buttons are pressed), so it increases dwButtonsNumber of 2 instead of 6, and dwButtons of 40 instead of 63.
  7. (Other dw values never change.)

Quote:
Originally Posted by French View Post
65535
Personally, I'm not sure how it's relevant, but -- 65535 is also the ID # of all static objects displayed in the Sound & Music Properties popup dialog in JJ2+ drop-down menu. I'd thus just guess that 65535 is a default ID # for static objects used in JJ2+ .EXE file resources, according to ResEdit ("a resource editor for Windows programs").