Home
last modified time | relevance | path

Searched refs:joystate (Results 1 – 25 of 38) sorted by relevance

12

/dports/emulators/visualboyadvance-m/visualboyadvance-m-VBA-M_Beta_2/src/wx/widgets/
H A Dsdljoy.cpp33 memset(joystate, 0, njoy * sizeof(*joystate)); in wxSDLJoy()
49 delete[] joystate; in ~wxSDLJoy()
73 if (!joystate[joy].dev) in Add()
91 if (joystate[i].dev) in Remove()
94 joystate[i].dev = NULL; in Remove()
102 if (!joystate[joy].dev) in Remove()
106 joystate[joy].dev = NULL; in Remove()
109 if (joystate[i].dev) in Remove()
130 int nax = joystate[i].nax, nhat = joystate[i].nhat, in Notify()
131 nbut = joystate[i].nbut; in Notify()
[all …]
/dports/devel/allegro5/allegro5-5.2.7.0/src/gp2xwiz/
H A Dwiz_joystick.c37 static ALLEGRO_JOYSTICK_STATE joystate; variable
126 joywiz_fill_joystate(&joystate); in joywiz_thread_proc()
127 if (joystate.stick[0].axis[0] != oldstate.stick[0].axis[0]) { in joywiz_thread_proc()
129 joystate.stick[0].axis[0]); in joywiz_thread_proc()
131 if (joystate.stick[0].axis[1] != oldstate.stick[0].axis[1]) { in joywiz_thread_proc()
133 joystate.stick[0].axis[1]); in joywiz_thread_proc()
142 if (joystate.button[i] != oldstate.button[i]) { in joywiz_thread_proc()
146 oldstate = joystate; in joywiz_thread_proc()
186 memset(&joystate, 0, sizeof(ALLEGRO_JOYSTICK_STATE)); in joywiz_init_joystick()
225 *ret_state = joystate; in joywiz_get_joystick_state()
/dports/emulators/frodo/Frodo-4.1b/Src/
H A DDisplay_x.i47 static int joystate = 0xFF; variable
689 joystate |= 0x10; in PollKeyboard()
692 joystate |= 0x02; in PollKeyboard()
695 joystate |= 0x01; in PollKeyboard()
698 joystate |= 0x04; in PollKeyboard()
701 joystate |= 0x08; in PollKeyboard()
704 joystate |= 0x05; in PollKeyboard()
707 joystate |= 0x09; in PollKeyboard()
710 joystate |= 0x06; in PollKeyboard()
713 joystate |= 0x0a; in PollKeyboard()
[all …]
H A DDisplay_svga.i138 static int joystate = 0xFF; variable
331 joystate &= ~0x10; in my_kbd_handler()
335 joystate &= ~0x2; in my_kbd_handler()
339 joystate &= ~0x1; in my_kbd_handler()
343 joystate &= ~0x4; in my_kbd_handler()
347 joystate &= ~0x8; in my_kbd_handler()
370 joystate |= 0x10; in my_kbd_handler()
374 joystate |= 0x2; in my_kbd_handler()
378 joystate |= 0x1; in my_kbd_handler()
382 joystate |= 0x4; in my_kbd_handler()
[all …]
H A DC64_Acorn.i153 if (Joystick_Read(0) == -2) {joystate[0] = 0;} else {joystate[0] = 0xff;} in open_close_joysticks()
154 if (Joystick_Read(1) == -2) {joystate[1] = 0;} else {joystate[1] = 0xff;} in open_close_joysticks()
165 if (state == -1) {joy = joystate[port];} // use old value in poll_joystick()
187 joystate[port] = joy; return(joy); in poll_joystick()
191 joystate[port] = 0; return(0xff); in poll_joystick()
H A DDisplay_WIN32.i516 *joystick = joystate; in PollKeyboard()
608 joystate = 0xff; in ResetKeyboardState()
1120 joystate |= 0x10; in WindowProc()
1124 joystate |= 0x01; in WindowProc()
1128 joystate |= 0x02; in WindowProc()
1132 joystate |= 0x04; in WindowProc()
1136 joystate |= 0x08; in WindowProc()
1140 joystate |= 0x05; in WindowProc()
1144 joystate |= 0x09; in WindowProc()
1148 joystate |= 0x06; in WindowProc()
[all …]
/dports/games/darkplaces/darkplaces/
H A Dvid_shared.c1231 vid_joystate_t joystate; in VID_JoyBlockEmulatedKeys() local
1241 VID_BuildJoyState(&joystate); in VID_JoyBlockEmulatedKeys()
1254 memset(joystate, 0, sizeof(*joystate)); in VID_Shared_BuildJoyState_Begin()
1258 joystate->is360 = true; in VID_Shared_BuildJoyState_Begin()
1296 if (joystate->is360) in VID_Shared_BuildJoyState_Finish()
1304 joystate->button[32] = f > 0.0f; in VID_Shared_BuildJoyState_Finish()
1305 joystate->button[33] = f < 0.0f; in VID_Shared_BuildJoyState_Finish()
1306 joystate->button[34] = r > 0.0f; in VID_Shared_BuildJoyState_Finish()
1307 joystate->button[35] = r < 0.0f; in VID_Shared_BuildJoyState_Finish()
1381 if (joystate->is360) in VID_ApplyJoyState()
[all …]
H A Dvid.h169 float VID_JoyState_GetAxis(const vid_joystate_t *joystate, int axis, float sensitivity, float deadz…
170 void VID_ApplyJoyState(vid_joystate_t *joystate);
171 void VID_BuildJoyState(vid_joystate_t *joystate);
172 void VID_Shared_BuildJoyState_Begin(vid_joystate_t *joystate);
173 void VID_Shared_BuildJoyState_Finish(vid_joystate_t *joystate);
H A Dvid_agl.c1051 void VID_BuildJoyState(vid_joystate_t *joystate) in VID_BuildJoyState() argument
1053 VID_Shared_BuildJoyState_Begin(joystate); in VID_BuildJoyState()
1054 VID_Shared_BuildJoyState_Finish(joystate); in VID_BuildJoyState()
1075 vid_joystate_t joystate; in IN_Move() local
1077 VID_BuildJoyState(&joystate); in IN_Move()
1078 VID_ApplyJoyState(&joystate); in IN_Move()
H A Dvid_null.c81 void VID_BuildJoyState(vid_joystate_t *joystate) in VID_BuildJoyState() argument
/dports/games/xonotic/Xonotic/source/darkplaces/
H A Dvid_shared.c1246 vid_joystate_t joystate; in VID_JoyBlockEmulatedKeys() local
1256 VID_BuildJoyState(&joystate); in VID_JoyBlockEmulatedKeys()
1269 memset(joystate, 0, sizeof(*joystate)); in VID_Shared_BuildJoyState_Begin()
1273 joystate->is360 = true; in VID_Shared_BuildJoyState_Begin()
1311 if (joystate->is360) in VID_Shared_BuildJoyState_Finish()
1319 joystate->button[32] = f > 0.0f; in VID_Shared_BuildJoyState_Finish()
1320 joystate->button[33] = f < 0.0f; in VID_Shared_BuildJoyState_Finish()
1321 joystate->button[34] = r > 0.0f; in VID_Shared_BuildJoyState_Finish()
1322 joystate->button[35] = r < 0.0f; in VID_Shared_BuildJoyState_Finish()
1396 if (joystate->is360) in VID_ApplyJoyState()
[all …]
H A Dvid.h169 float VID_JoyState_GetAxis(const vid_joystate_t *joystate, int axis, float sensitivity, float deadz…
170 void VID_ApplyJoyState(vid_joystate_t *joystate);
171 void VID_BuildJoyState(vid_joystate_t *joystate);
172 void VID_Shared_BuildJoyState_Begin(vid_joystate_t *joystate);
173 void VID_Shared_BuildJoyState_Finish(vid_joystate_t *joystate);
H A Dvid_agl.c1114 void VID_BuildJoyState(vid_joystate_t *joystate) in VID_BuildJoyState() argument
1116 VID_Shared_BuildJoyState_Begin(joystate); in VID_BuildJoyState()
1117 VID_Shared_BuildJoyState_Finish(joystate); in VID_BuildJoyState()
1138 vid_joystate_t joystate; in IN_Move() local
1140 VID_BuildJoyState(&joystate); in IN_Move()
1141 VID_ApplyJoyState(&joystate); in IN_Move()
/dports/devel/sdl12/SDL-1.2.15/src/joystick/riscos/
H A DSDL_sysjoystick.c46 int joystate; member
103 joystick->hwdata->joystate=0; in SDL_SYS_JoystickOpen()
122 int oldstate = joystick->hwdata->joystate; in SDL_SYS_JoystickUpdate()
153 joystick->hwdata->joystate = newstate; in SDL_SYS_JoystickUpdate()
/dports/devel/allegro5/allegro5-5.2.7.0/examples/
H A Dex_joystick_hotplugging.c38 ALLEGRO_JOYSTICK_STATE joystate; in draw() local
44 al_get_joystick_state(curr_joy, &joystate); in draw()
47 x+joystate.stick[i].axis[0]*20 + i * 80, in draw()
48 y+joystate.stick[i].axis[1]*20, in draw()
53 if (joystate.button[i]) { in draw()
/dports/devel/allegro5/allegro5-5.2.7.0/demos/cosmic_protector/src/
H A DInput.cpp17 memset(&joystate, 0, sizeof(ALLEGRO_JOYSTICK_STATE)); in Input()
159 al_get_joystick_state(joystick, &joystate); in poll()
181 float pos = joystate.stick[0].axis[0]; in lr()
241 float pos = joystate.stick[0].axis[1]; in ud()
258 return joystate.button[1]; in esc()
275 return joystate.button[0]; in b1()
/dports/devel/allegro5/allegro5-5.2.7.0/src/android/
H A Dandroid_joystick.c11 ALLEGRO_JOYSTICK_STATE joystate; member
175 *ret_state = andjoy->joystate; in andjoy_get_joystick_state()
220 accel->joystate.stick[0].axis[i] = pos[i]; in _al_android_generate_accelerometer_event()
252 joystick->joystate.stick[stick].axis[axis] = value; in _al_android_generate_joystick_axis_event()
289 joystick->joystate.button[button] = type == ALLEGRO_EVENT_JOYSTICK_BUTTON_DOWN ? 1 : 0; in _al_android_generate_joystick_button_event()
/dports/devel/allegro5/allegro5-5.2.7.0/src/win/
H A Dwjoydxnu.cpp1046 memset(&joy->joystate, 0, sizeof(joy->joystate)); in joydx_inactivate_joy()
1372 *ret_state = joy->joystate; in joydx_get_joystick_state()
1551 joy->joystate.stick[stick].axis[axis] = pos; in handle_axis_event()
1570 old_p0 = joy->joystate.stick[stick].axis[0]; in handle_pov_event()
1571 old_p1 = joy->joystate.stick[stick].axis[1]; in handle_pov_event()
1575 joy->joystate.stick[stick].axis[0] = p0 = -1.0; in handle_pov_event()
1578 joy->joystate.stick[stick].axis[0] = p0 = +1.0; in handle_pov_event()
1580 joy->joystate.stick[stick].axis[0] = p0 = 0.0; in handle_pov_event()
1590 joy->joystate.stick[stick].axis[1] = p1 = 0.0; in handle_pov_event()
1613 joy->joystate.button[button] = 32767; in handle_button_event()
[all …]
/dports/devel/sfml/SFML-2.5.1/src/SFML/Window/Win32/
H A DJoystickImpl.cpp721 DIJOYSTATE joystate; in updateDInput() local
724 HRESULT result = m_device->GetDeviceState(sizeof(joystate), &joystate); in updateDInput()
731 result = m_device->GetDeviceState(sizeof(joystate), &joystate); in updateDInput()
757 …ue = LOWORD(*reinterpret_cast<const DWORD*>(reinterpret_cast<const char*>(&joystate) + m_axes[i])); in updateDInput()
772 …ue = LOWORD(*reinterpret_cast<const DWORD*>(reinterpret_cast<const char*>(&joystate) + m_axes[i])); in updateDInput()
787 …st<float>(*reinterpret_cast<const LONG*>(reinterpret_cast<const char*>(&joystate) + m_axes[i])) + … in updateDInput()
801 …BYTE value = *reinterpret_cast<const BYTE*>(reinterpret_cast<const char*>(&joystate) + m_buttons[i… in updateDInput()
/dports/devel/allegro5/allegro5-5.2.7.0/src/linux/
H A Dljoynu.c321 memset(&joy->joystate, 0, sizeof(joy->joystate)); in inactivate_joy()
854 *ret_state = joy->joystate; in ljoy_get_joystick_state()
931 joy->joystate.button[number] = 32767; in ljoy_process_new_data()
933 joy->joystate.button[number] = 0; in ljoy_process_new_data()
949 joy->joystate.stick[stick].axis[axis] = pos; in ljoy_process_new_data()
/dports/devel/allegro5/allegro5-5.2.7.0/src/iphone/
H A Diphone_joystick.m11 ALLEGRO_JOYSTICK_STATE joystate; field
83 *ret_state = ijoy->joystate;
/dports/emulators/vba/VisualBoyAdvance-1.7.2/src/gb/
H A DGB.cpp1257 int joystate = gbJoymask[joy]; in gbReadMemory() local
1258 if(!(joystate & 128)) in gbReadMemory()
1260 if(!(joystate & 64)) in gbReadMemory()
1262 if(!(joystate & 32)) in gbReadMemory()
1264 if(!(joystate & 16)) in gbReadMemory()
1290 int joystate = gbJoymask[joy]; in gbReadMemory() local
1291 if(!(joystate & 8)) in gbReadMemory()
1293 if(!(joystate & 4)) in gbReadMemory()
1295 if(!(joystate & 2)) in gbReadMemory()
1297 if(!(joystate & 1)) in gbReadMemory()
/dports/devel/allegro5/allegro5-5.2.7.0/include/allegro5/internal/
H A Daintern_wjoyxi.h38 ALLEGRO_JOYSTICK_STATE joystate; member
H A Daintern_ljoynu.h63 ALLEGRO_JOYSTICK_STATE joystate; member
/dports/devel/allegro5/allegro5-5.2.7.0/demos/cosmic_protector/include/
H A DInput.hpp29 ALLEGRO_JOYSTICK_STATE joystate; member in Input

12