X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_in.c;h=3c6a2465c94912b26444bed3cba9a18cbf91c68a;hb=4d4c2774d4e51f7356f7a5ef32ef61a9fd2c299a;hp=834e3b3737f1d1a336aaaf879b925de8d1514529;hpb=1f84cf5971bae918b6747ce391e75eb233666e54;p=16.git diff --git a/src/lib/16_in.c b/src/lib/16_in.c index 834e3b37..3c6a2465 100755 --- a/src/lib/16_in.c +++ b/src/lib/16_in.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2021 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2022 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -1298,9 +1298,9 @@ byte IN_MouseButtons (global_game_variables_t *gvar) =================== */ -byte IN_JoyButtons (void) +word IN_JoyButtons (void) { - byte joybits; + word joybits; joybits = inportb(0x201); // Get all the joystick buttons joybits >>= 4; // only the high bits are useful