mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-04 11:10:15 +00:00
Change so that modifer keypresses will only register when the window has focus in Windows. This corrects the issue with SLEEP, KEYHIT, and INP(&H60) registering SHIFT, CTRL, and ALT keypresses even when the program is not in focus or is running as a background app. Also changed _SCREENEXISTS (and a few other window user commands) so that they require windows to have actually registered a windows handle for the function to return -1, and not just for glut to have finished initializing the screen itself.
36 lines
No EOL
1.1 KiB
C
36 lines
No EOL
1.1 KiB
C
|
|
//***************************************************************
|
|
//**
|
|
//** Declarations for routines proved by Steve McNeill
|
|
//** Email: smcneill@swva.net
|
|
//**
|
|
//****************************************************************
|
|
|
|
//Angle Conversion Formulas
|
|
double func_deg2rad(double degree);
|
|
double func_deg2grad(double degree);
|
|
double func_rad2deg(double degree);
|
|
double func_rad2grad(double degree);
|
|
double func_grad2deg(double degree);
|
|
double func_grad2rad(double degree);
|
|
|
|
double func_pi(double multiplier,int32 passed);
|
|
int32 func_screenwidth();
|
|
int32 func_screenheight();
|
|
void sub_screenicon();
|
|
int32 func_windowexists ();
|
|
int32 func__controlchr();
|
|
int32 func__str_nc_compare(qbs *s1, qbs *s2);
|
|
int32 func__str_compare(qbs *s1, qbs *s2);
|
|
double func_arcsec (double num);
|
|
double func_arccsc (double num);
|
|
double func_arccot (double num);
|
|
double func_sech (double num);
|
|
double func_csch (double num);
|
|
double func_coth (double num);
|
|
double func_sec (double num);
|
|
double func_csc (double num);
|
|
double func_cot (double num);
|
|
int32 func_screenicon ();
|
|
|
|
extern HWND window_handle; |