// (c) 1995-2014 by Artsoft Entertainment
// Holger Schemel
// info@artsoft.org
-// http://www.artsoft.org/
+// https://www.artsoft.org/
// ----------------------------------------------------------------------------
// joystick.c
// ============================================================================
#include "misc.h"
-/* ========================================================================= */
-/* platform independent joystick functions */
-/* ========================================================================= */
+// ============================================================================
+// platform independent joystick functions
+// ============================================================================
#define TRANSLATE_JOYSYMBOL_TO_JOYNAME 0
#define TRANSLATE_JOYNAME_TO_JOYSYMBOL 1
if (!ReadJoystick(joystick_nr, &js_x, &js_y, &js_b1, &js_b2))
{
- Error(ERR_WARN, "cannot read joystick device '%s'",
- setup.input[player_nr].joy.device_name);
+ Warn("cannot read joystick device '%s'",
+ setup.input[player_nr].joy.device_name);
joystick.status = JOYSTICK_NOT_AVAILABLE;
+
return JOY_NO_ACTION;
}
void ActivateJoystick(void)
{
- /* reactivate temporarily deactivated joystick */
+ // reactivate temporarily deactivated joystick
if (joystick.status & JOYSTICK_AVAILABLE)
joystick.status |= JOYSTICK_ACTIVE;