================= Controls_GetKeyAssignment ================= */
| 5560 | ================= |
| 5561 | */ |
| 5562 | static 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 | ================= |
no test coverage detected