#define CUR SP_TERMTYPE
#endif
-MODULE_ID("$Id: lib_mouse.c,v 1.186 2020/05/02 21:13:04 tom Exp $")
+MODULE_ID("$Id: lib_mouse.c,v 1.188 2020/05/23 23:35:35 tom Exp $")
#include <tic.h>
decode_X10_bstate(SCREEN *sp, MEVENT * eventp, unsigned intro)
{
bool result;
- int button;
+ int button = 0;
int wheel = (intro & 96) == 96;
eventp->bstate = 0;
if (intro >= 96) {
if (intro >= 160) {
- button = (intro - 152); /* buttons 8-11 */
+ button = (int) (intro - 152); /* buttons 8-11 */
} else if (intro >= 96) {
- button = (intro - 92); /* buttons 4-7 */
+ button = (int) (intro - 92); /* buttons 4-7 */
}
} else {
button = (intro & 3);