MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Input_Flags_SetBits

Function Input_Flags_SetBits

src/input/input.c:240–250  ·  view source on GitHub ↗

* Sets the given bits in input flags. * * @param bits The bits to set. * @return The new value of input flags. */

Source from the content-addressed store, hash-verified

238 * @return The new value of input flags.
239 */
240uint16 Input_Flags_SetBits(uint16 bits)
241{
242 g_inputFlags |= bits;
243
244 if ((g_inputFlags & INPUT_FLAG_KEY_RELEASE) != 0) {
245 uint8 i;
246 for (i = 0; i < lengthof(s_activeInputMap); i++) s_activeInputMap[i] = 0;
247 }
248
249 return g_inputFlags;
250}
251
252/** Clear the history buffer. */
253void Input_History_Clear(void)

Callers 4

GameLoop_MainFunction · 0.85
GUI_EditBoxFunction · 0.85
GUI_Mentat_ShowHelpListFunction · 0.85
Mouse_SetMouseModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected