@@ -1444,6 +1444,7 @@ pub extern "C" fn processing_input_mouse_button(surface_id: u64, button: u8, pre
14441444 PROCESSING_MOUSE_MIDDLE => MouseButton :: Middle ,
14451445 PROCESSING_MOUSE_RIGHT => MouseButton :: Right ,
14461446 _ => {
1447+ <<<<<<< HEAD
14471448<<<<<<< HEAD
14481449 return Err ( ProcessingError :: InvalidArgument ( format ! (
14491450 "invalid mouse button: {button}"
@@ -1455,6 +1456,11 @@ pub extern "C" fn processing_input_mouse_button(surface_id: u64, button: u8, pre
14551456 ) ) ,
14561457 ) ;
14571458>>>>>>> 6 ad893c ( Add input support; extract glfw crate . )
1459+ =======
1460+ return Err ( ProcessingError :: InvalidArgument ( format ! (
1461+ "invalid mouse button: {button}"
1462+ ) ) ) ;
1463+ >>>>>>> 2715 c70 ( Fmt . )
14581464 }
14591465 } ;
14601466 input_set_mouse_button( Entity :: from_bits ( surface_id ) , btn, pressed)
@@ -1482,13 +1488,17 @@ pub extern "C" fn processing_input_char(surface_id: u64, key_code: u32, codepoin
14821488 error:: check ( || {
14831489 let kc = key_code_from_u32( key_code) ?;
14841490 let ch = char:: from_u32 ( codepoint ) . ok_or_else( || {
1491+ <<<<<<< HEAD
14851492<<<<<<< HEAD
14861493 ProcessingError :: InvalidArgument ( format ! ( "invalid codepoint: {codepoint}" ) )
14871494=======
14881495 ProcessingError :: InvalidArgument ( format ! (
14891496 "invalid codepoint: {codepoint}"
14901497 ) )
14911498>>>>>>> 6 ad893c ( Add input support; extract glfw crate . )
1499+ =======
1500+ ProcessingError :: InvalidArgument ( format ! ( "invalid codepoint: {codepoint}" ) )
1501+ >>>>>>> 2715 c70 ( Fmt . )
14921502 } ) ?;
14931503 input_set_char( Entity :: from_bits ( surface_id ) , kc, ch)
14941504 } ) ;
@@ -1599,12 +1609,16 @@ pub extern "C" fn processing_key() -> u32 {
15991609#[ unsafe( no_mangle) ]
16001610pub extern "C" fn processing_key_code ( ) -> u32 {
16011611 error:: clear_error ( ) ;
1612+ <<<<<<< HEAD
16021613<<<<<<< HEAD
16031614 error:: check ( || input_key_code( ) . map( |opt| opt. map( key_code_to_u32) . unwrap_or( 0 ) ) ) . unwrap_or( 0 )
16041615=======
16051616 error:: check ( || input_key_code( ) . map( |opt| opt. map( key_code_to_u32) . unwrap_or( 0 ) ) )
16061617 . unwrap_or( 0 )
16071618>>>>>>> 6 ad893c ( Add input support; extract glfw crate . )
1619+ =======
1620+ error:: check ( || input_key_code( ) . map( |opt| opt. map( key_code_to_u32) . unwrap_or( 0 ) ) ) . unwrap_or( 0 )
1621+ >>>>>>> 2715 c70 ( Fmt . )
16081622}
16091623
16101624#[ unsafe( no_mangle) ]
@@ -1744,6 +1758,7 @@ fn key_code_from_u32(val: u32) -> processing::prelude::error::Result<KeyCode> {
17441758 PROCESSING_KEY_ALT_RIGHT => Ok ( KeyCode :: AltRight ) ,
17451759 PROCESSING_KEY_SUPER_RIGHT => Ok ( KeyCode :: SuperRight ) ,
17461760 PROCESSING_KEY_CONTEXT_MENU => Ok ( KeyCode :: ContextMenu ) ,
1761+ <<<<<<< HEAD
17471762< <<<<<< HEAD
17481763 _ => Err ( ProcessingError :: InvalidArgument ( format ! (
17491764 "unknown key code: {val}"
@@ -1753,6 +1768,11 @@ fn key_code_from_u32(val: u32) -> processing::prelude::error::Result<KeyCode> {
17531768 format ! ( "unknown key code: {val}" ) ,
17541769 ) ) ,
17551770>>>>>>> 6 ad893c ( Add input support; extract glfw crate . )
1771+ =======
1772+ _ => Err ( ProcessingError :: InvalidArgument ( format ! (
1773+ "unknown key code: {val}"
1774+ ) ) ) ,
1775+ >>>>>>> 2715 c70 ( Fmt . )
17561776 }
17571777}
17581778
0 commit comments