mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-27 06:02:16 +00:00
97579ebfbb
hexen2 players now have colourmaps again. doesn't crash with rgb player colours. hexen2 colour previews now work (as well as they did in actual hexen2, anyway) fix possible issue with 'bad type - needs fixing' color command now longer omits 0 values when displaying. readded support for all hexen2 palette lookup types. fixed some hexen2 image positions. using premultiplied alpha for pics as an easy fix for hexen2's various ugly halos. the checkerboard texture is back! fix q1 maps that have more than 32k clipplanes. new features: when associated with mdl etc file extensions, now opens up the modelviewer. also potentially changes gamedir (this applies to bsps too). multiplayer setup menu now supports selecting rgb colours (lower colour remains with the 14 team colours). press shift for the normal/hue colour selection instead. attempt to use bgra for texture uploads by default where available. reimplement possible support for 16bit textures. attempt to implement gamepad support for web port. untested, but should be completeish. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4764 fc73d0e0-1445-4013-8a0c-d673dee63da5
59 lines
2.2 KiB
C
59 lines
2.2 KiB
C
/*
|
|
Copyright (C) 1996-1997 Id Software, Inc.
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
// input.h -- external (non-keyboard) input devices
|
|
|
|
void IN_ReInit (void);
|
|
|
|
void IN_Init (void);
|
|
|
|
void IN_Shutdown (void);
|
|
|
|
void IN_Commands (void);
|
|
// oportunity for devices to stick commands on the script buffer
|
|
|
|
qboolean IN_MouseDevIsTouch(int devid); //check if a mouse devid is a touch screen, and thus if we should check the cursor and simulate a ui event or not
|
|
int IN_TranslateMButtonPress(int devid); //allow the touchscreen code to swallow mouse1 as a begin-looking event
|
|
|
|
void IN_Move (float *movements, int pnum, float frametime);
|
|
// add additional movement on top of the keyboard move cmd
|
|
|
|
extern cvar_t in_xflip;
|
|
|
|
extern float mousecursor_x, mousecursor_y;
|
|
extern float mousemove_x, mousemove_y;
|
|
|
|
void IN_ActivateMouse(void);
|
|
void IN_DeactivateMouse(void);
|
|
|
|
int CL_TargettedSplit(qboolean nowrap);
|
|
|
|
//specific events for the system-specific input code to call. may be called outside the main thread (so long as you don't call these simultaneously - ie: use a mutex or only one input thread).
|
|
void IN_KeyEvent(int devid, int down, int keycode, int unicode); //don't use IN_KeyEvent for mice if you ever use abs mice...
|
|
void IN_MouseMove(int devid, int abs, float x, float y, float z, float size);
|
|
void IN_JoystickAxisEvent(int devid, int axis, float value);
|
|
|
|
//system-specific functions
|
|
void INS_Move (float *movements, int pnum);
|
|
void INS_Accumulate (void);
|
|
void INS_ClearStates (void);
|
|
void INS_ReInit (void);
|
|
void INS_Init (void);
|
|
void INS_Shutdown (void);
|
|
void INS_Commands (void); //final chance to call IN_MouseMove/IN_KeyEvent each frame
|