Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It would have to be an HID interface for some controller I ran into. It was essentially a large switch that used bitwise operations against some magic byte as the cases to determine which button was pressed. Avoided using variables or an enum which I thought was interesting


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: