SpecialEventAdd and Float parameter



  • On 01/10/2015 at 00:40, xxxxxxxx wrote:

    Is it possible to set P2 to a Float in SpecialEventAdd?
    Normally it is a Int32, but can I use SpecialEventAdd to send a Float?

    -Pim



  • On 01/10/2015 at 09:35, xxxxxxxx wrote:

    Hi Pim,

    no, I don't think, that's possible.
    Depending on your needs (value range, precision) you could get away with something like this:

    SpecialEventAdd(id, value * 1000)
      
    and then in CoreMessage:
      
    value = receivedValue / 1000
    


  • On 02/10/2015 at 01:42, xxxxxxxx wrote:

    Brilliant, thank you.


Log in to reply