Refactor: controller: Add set/clear macros for global flags
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>