MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Controls_GetKeyAssignment

Function Controls_GetKeyAssignment

code/ui/ui_shared.cpp:5562–5580  ·  view source on GitHub ↗

================= Controls_GetKeyAssignment ================= */

Source from the content-addressed store, hash-verified

5560=================
5561*/
5562static void Controls_GetKeyAssignment( const char *command, int *twokeys )
5563{
5564 int count;
5565 int j;
5566 char b[256];
5567
5568 twokeys[0] = twokeys[1] = -1;
5569 count = 0;
5570
5571 for ( j=0; j<MAX_KEYS; j++ ) {
5572 DC->getBindingBuf( j, b, sizeof( b ) );
5573 if ( *b && !Q_stricmp( b, command ) ) {
5574 twokeys[count] = j;
5575 count++;
5576 if ( count == 2 )
5577 break;
5578 }
5579 }
5580}
5581
5582/*
5583=================

Callers 1

Controls_GetConfigFunction · 0.70

Calls 1

Q_stricmpFunction · 0.85

Tested by

no test coverage detected