MCPcopy Create free account
hub / github.com/kiibohd/controller / callback_setup

Method callback_setup

Lib/host.py:434–443  ·  view source on GitHub ↗

Setup callback

( self )

Source from the content-addressed store, hash-verified

432 self.callback_dict.update( get_method_dict( output.Callbacks() ) )
433
434 def callback_setup( self ):
435 '''
436 Setup callback
437 '''
438 self.CTYPE_callback = CFUNCTYPE( c_int, c_char_p, c_void_p )
439 try:
440 refresh_callback()
441 except Exception as err:
442 logger.error("Could not register libkiibohd callback function\n{}", err)
443 sys.exit( 1 )
444
445 def process_args( self ):
446 '''

Callers 1

__init__Method · 0.95

Calls 1

refresh_callbackFunction · 0.85

Tested by

no test coverage detected