wb_read_mode
wb_read_mode(device);
int32 mode = wb_read_mode(device);
extern int32 wb_read_mode(wb_device* device);