MCPcopy Create free account
hub / github.com/carbonengine/trinity / AddScancodesToDict

Function AddScancodesToDict

trinity/UI/Scancodes.cpp:186–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185#if BLUE_WITH_PYTHON
186void AddScancodesToDict( PyObject* dict )
187{
188 for( int i = 0; i < sizeof SCANCODES / sizeof SCANCODES[0]; i++ )
189 {
190 PyObject* value = ToPython( SCANCODES[i].mDIK );
191 PyDict_SetItemString( dict, (char*)SCANCODES[i].mName, value );
192 Py_DECREF( value );
193 }
194}
195#endif
196
197

Callers 1

InitializeForPythonFunction · 0.85

Calls 1

ToPythonFunction · 0.85

Tested by

no test coverage detected