pub fn get_code(button: &Button, platform: Platform) -> usize
Helper function to get platform-specific code for a button
Uses the standard mapping by default