Want to have simSetBooleanSignal and simGetBooleanSignal

Requests or suggestions for new features
Post Reply
jacobi
Posts: 11
Joined: 13 Aug 2015, 22:27

Want to have simSetBooleanSignal and simGetBooleanSignal

Post by jacobi » 01 Nov 2015, 19:03

Dear Copellia,

It is noted that there are three types of signals and there are APIs as follows.
simSetIntegerSignal, simSetFloatSignal, simSetStringSignal
simGetIntegerSignal, simGetFloatSignal, simGetStringSignal

I wonder if it is possible to have simSetBooleanSignal and simGetBooleanSignal?
I think it is also important to have global variables of boolean type. Thank you!

coppelia
Site Admin
Posts: 7441
Joined: 14 Dec 2012, 00:25

Re: Want to have simSetBooleanSignal and simGetBooleanSignal

Post by coppelia » 02 Nov 2015, 10:20

Hello Jacobi,

the reason why simSetBooleanSignal/simGetBooleanSignal is not supported is because you can use an interger signal also for boolean values, i.e. 0 is false, !=0 is true.

Cheers

Post Reply