History

crude openbsd+openal port

Sigrid Solveig Haflínudóttir committed 3 years ago

Commit 3ce12951 parent 37c074716 files · +731 −101Browse files

Showing the changes to src/core/util_hid.cpp (1 of 16 files). Show all

Unified · Split

src/core/util_hid.cpp+160−0
@@ -8121,3 +8121,163 @@ const char * MultiTouchDevice_name( int ts ) { return NULL; } · 8120 unmodified lines
81218121
81228122 #endif // __CHIP_MODE__
81238123
8124+#ifdef __PLATFORM_OPENBSD__
8125+
8126+void Hid_init(){}
8127+void Hid_poll(){}
8128+void Hid_quit(){}
8129+
8130+void Keyboard_init(){}
8131+void Keyboard_poll(){}
8132+void Keyboard_quit(){}
8133+void Keyboard_probe(){}
8134+
8135+int Keyboard_count()
8136+{
8137+ return 0;
8138+}
8139+
8140+int Keyboard_open( int kb )
8141+{
8142+ return -1;
8143+}
8144+
8145+int Keyboard_open( const char * name )
8146+{
8147+ return -1;
8148+}
8149+
8150+int Keyboard_close( int kb )
8151+{
8152+ return -1;
8153+}
8154+
8155+const char * Keyboard_name( int kb )
8156+{
8157+ return NULL;
8158+}
8159+
8160+void start_hid_multi_touch() { }
8161+void stop_hid_multi_touch() { }
8162+
8163+void Mouse_init(){}
8164+void Mouse_poll(){}
8165+void Mouse_quit(){}
8166+void Mouse_probe(){}
8167+
8168+int Mouse_count()
8169+{
8170+ return 1;
8171+}
8172+
8173+int Mouse_open( int m )
8174+{
8175+ if(m >= 0 && m < 1)
8176+ {
8177+ start_hid_multi_touch();
8178+ return 0;
8179+ }
8180+ else
8181+ return -1;
8182+}
8183+
8184+int Mouse_open( const char * name )
8185+{
8186+ return -1;
8187+}
8188+
8189+int Mouse_close( int m )
8190+{
8191+ if(m >= 0 && m < 1)
8192+ {
8193+ stop_hid_multi_touch();
8194+ return 0;
8195+ }
8196+ else
8197+ return -1;
8198+}
8199+
8200+int Mouse_send( int m, const HidMsg * msg )
8201+{
8202+ return -1;
8203+}
8204+
8205+const char * Mouse_name( int m )
8206+{
8207+ if(m == 0)
8208+ return "iPhone Multitouch";
8209+ else
8210+ return NULL;
8211+}
8212+
8213+// ge: SMS multi-thread poll rate
8214+t_CKINT TiltSensor_setPollRate( t_CKINT usec )
8215+{
8216+ return -1;
8217+}
8218+
8219+t_CKINT TiltSensor_getPollRate( )
8220+{
8221+ return -1;
8222+}
8223+
8224+void Joystick_init(){}
8225+
8226+void Joystick_poll(){}
8227+
8228+void Joystick_quit(){}
8229+
8230+void Joystick_probe(){}
8231+
8232+int Joystick_count()
8233+{
8234+ return 0;
8235+}
8236+
8237+int Joystick_open( int js )
8238+{
8239+ return -1;
8240+}
8241+
8242+int Joystick_open_async( int js )
8243+{
8244+ return -1;
8245+}
8246+
8247+int Joystick_open( const char * name )
8248+{
8249+ return -1;
8250+}
8251+
8252+int Joystick_close( int js )
8253+{
8254+ return -1;
8255+}
8256+
8257+int Joystick_send( int js, const HidMsg * msg )
8258+{
8259+ return -1;
8260+}
8261+
8262+
8263+const char * Joystick_name( int js )
8264+{
8265+ return NULL;
8266+}
8267+
8268+int Joystick_axes( int js )
8269+{
8270+ return -1;
8271+}
8272+
8273+int Joystick_buttons( int js )
8274+{
8275+ return -1;
8276+}
8277+
8278+int Joystick_hats( int js )
8279+{
8280+ return -1;
8281+}
8282+
8283+#endif // __PLATFORM_OPENBSD__

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t