Files
fs2open.github.com/code/io/keycontrol.h
asarium d7d3b8c8e2 Remove hack for On Frame scripting hook and quit mission popup
I added this hack a long time ago and it always bothered me why I didn't
come up with a better solution. This is the better solution which uses
the popup_active function for determining if gr_flip is called within a
popup.
2018-07-06 17:03:29 +02:00

42 lines
1.0 KiB
C

/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#ifndef __FREESPACE_KEYCONTROL_H__
#define __FREESPACE_KEYCONTROL_H__
#include "controlconfig/controlsconfig.h"
// Holds the bit arrays that indicate which action is to be executed.
#define NUM_BUTTON_FIELDS ((CCFG_MAX + 31) / 32)
extern int Dead_key_set[];
extern int Dead_key_set_size;
extern bool Perspective_locked;
extern int Ignored_keys[];
typedef struct button_info
{
int status[NUM_BUTTON_FIELDS];
} button_info;
void button_info_set(button_info *bi, int n);
void button_info_unset(button_info *bi, int n);
int button_info_query(button_info *bi, int n);
void button_info_do(button_info *bi);
void button_info_clear(button_info *bi);
void process_set_of_keys(int key, int count, int *list);
void game_process_pause_key();
void button_strip_noncritical_keys(button_info *bi);
#endif