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
8121 8121
8122#endif // __CHIP_MODE__8122#endif // __CHIP_MODE__
8123 8123
8124#ifdef __PLATFORM_OPENBSD__
8125
8126void Hid_init(){}
8127void Hid_poll(){}
8128void Hid_quit(){}
8129
8130void Keyboard_init(){}
8131void Keyboard_poll(){}
8132void Keyboard_quit(){}
8133void Keyboard_probe(){}
8134
8135int Keyboard_count()
8136{
8137 return 0;
8138}
8139
8140int Keyboard_open( int kb )
8141{
8142 return -1;
8143}
8144
8145int Keyboard_open( const char * name )
8146{
8147 return -1;
8148}
8149
8150int Keyboard_close( int kb )
8151{
8152 return -1;
8153}
8154
8155const char * Keyboard_name( int kb )
8156{
8157 return NULL;
8158}
8159
8160void start_hid_multi_touch() { }
8161void stop_hid_multi_touch() { }
8162
8163void Mouse_init(){}
8164void Mouse_poll(){}
8165void Mouse_quit(){}
8166void Mouse_probe(){}
8167
8168int Mouse_count()
8169{
8170 return 1;
8171}
8172
8173int 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
8184int Mouse_open( const char * name )
8185{
8186 return -1;
8187}
8188
8189int 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
8200int Mouse_send( int m, const HidMsg * msg )
8201{
8202 return -1;
8203}
8204
8205const 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
8214t_CKINT TiltSensor_setPollRate( t_CKINT usec )
8215{
8216 return -1;
8217}
8218
8219t_CKINT TiltSensor_getPollRate( )
8220{
8221 return -1;
8222}
8223
8224void Joystick_init(){}
8225
8226void Joystick_poll(){}
8227
8228void Joystick_quit(){}
8229
8230void Joystick_probe(){}
8231
8232int Joystick_count()
8233{
8234 return 0;
8235}
8236
8237int Joystick_open( int js )
8238{
8239 return -1;
8240}
8241
8242int Joystick_open_async( int js )
8243{
8244 return -1;
8245}
8246
8247int Joystick_open( const char * name )
8248{
8249 return -1;
8250}
8251
8252int Joystick_close( int js )
8253{
8254 return -1;
8255}
8256
8257int Joystick_send( int js, const HidMsg * msg )
8258{
8259 return -1;
8260}
8261
8262
8263const char * Joystick_name( int js )
8264{
8265 return NULL;
8266}
8267
8268int Joystick_axes( int js )
8269{
8270 return -1;
8271}
8272
8273int Joystick_buttons( int js )
8274{
8275 return -1;
8276}
8277
8278int 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