Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi ,

      I'm tring to read and write about light.

      The documentation says that :

      image.png.c87d8565ae9446a2acd623c349cf1cc3.png  

      Weather means that  If I read it with ushort and convert to byte ,then modify it's  value and convert back and write ?

      Any replies will be appriciate.

    

Posted

If you're using my DLL it's best to declare this offset as a bitarray.

Please see the example code application - AC002_BitArrays under 'Advanced Concepts'. This example uses the lights offset you are referring to.

If you're not using my DLL then you need to keep the value as a short, but test each bit using boolean arithmetic (bit-wise 'and', 'or' etc.)

Paul

Please sign in to comment

You will be able to leave a comment after signing in



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.