question: given a mouse accelerator , extract the button value . for use in synthesizing raw events . concode_field_sep boolean BUTTONS_REMAPPED concode_elem_sep int SECONDARY_BUTTON concode_elem_sep int BUTTON_MASK concode_elem_sep int PRIMARY_BUTTON concode_field_sep PlaybackSettings getPlaybackSettings
target: int function ( int arg0 ) { arg0 &= BUTTON_MASK ; if ( ( arg0 & SWT . BUTTON1 ) == SWT . BUTTON1 ) return MouseConfig . PRIMARY_BUTTON ; if ( ( arg0 & SWT . BUTTON2 ) == SWT . BUTTON2 ) return 2 ; if ( ( arg0 & SWT . BUTTON3 ) == SWT . BUTTON3 ) return MouseConfig . SECONDARY_BUTTON ; return 0 ; }