4 ms·
edit: did not read correctly: https://godbolt.org/g/XjdL7i https://godbolt.org/g/XjdL7i - uint8_t controller_state = BTN_A | BTN_B; if I read correctly t
by jerrre 8y ago
edit: did not read correctly: https://godbolt.org/g/XjdL7i https://godbolt.org/g/XjdL7i
-
uint8_t controller_state = BTN_A | BTN_B;
if I read correctly this example would not be possible anymore right?
bitmask<Button> controller_state = Button::A | Button::B;
or
bitmask<Button> controller_state { Button::A | Button::B };
won't work.
- nice_byte 8y agothat's what the operator| at the end is for