Jump to content
The simFlight Network Forums

Recommended Posts

Posted

John,

Any plans to include joystick inputs via Offset x2910?  The current documentation states untested; hoping you have plans to test and implement.  Thank you, sir!

Matt

Posted
1 hour ago, kingm56 said:

Any plans to include joystick inputs via Offset x2910?  The current documentation states untested; hoping you have plans to test and implement.  Thank you, sir!

it is untested but should be working. If you want to use it, go ahead. Report back if you have any issues and I will look into it. In fact, report back if it works as well and I will update the documentation to state it us working.

Most, if not all, of the offsets marked as untested should work ok.

John

Posted

Hey John!

It doesn't appear to be working.  I confirmed with Paul over at his .dll forum; if you could add to your long list of offsets to work Id be grateful. 

Matt

Posted
7 hours ago, John Dowson said:

Ok. I will check this when I get a chance and report back.

Seems to be working fine as far as I can tell. I tested with the following lua script:

Quote

-- Hot Button test at offset 0x2910

-- First, write to offset to signal the button I am interested in
-- I will use my joystick #1 button #6 for both off to on and in to off
ipc.writeUD(0x2910, 0x000681) -- where 0x81 (129) is joystick 1, 06 is button 6 and 00 is for off-to-on

-- function to register change
function hotButtonActivated(offset, value)
    if value  ~= 0 then
        ipc.log("Hot button changed: " .. value)
        -- clear flag
        ipc.writeUB(offset, 0);
    end
end

-- event on trigger
event.offset(0x2913, "UB", "hotButtonActivated")
 

When it is running and I press my joystick#1 button 6, I see
       822891 LUA.6: Hot button changed: 3
 

I suggest you check how you are using this offset.

John

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.