2017-01-29 00:03:23 +00:00
|
|
|
/*
|
|
|
|
4coder_default_bidings.cpp - Supplies the default bindings used for default 4coder behavior.
|
|
|
|
*/
|
2016-03-15 14:12:06 +00:00
|
|
|
|
2016-03-21 22:27:27 +00:00
|
|
|
// TOP
|
|
|
|
|
2018-05-09 07:10:07 +00:00
|
|
|
#if !defined(FCODER_DEFAULT_BINDINGS_CPP)
|
|
|
|
#define FCODER_DEFAULT_BINDINGS_CPP
|
2016-06-28 22:58:50 +00:00
|
|
|
|
2016-05-06 16:45:50 +00:00
|
|
|
#include "4coder_default_include.cpp"
|
2016-03-15 14:12:06 +00:00
|
|
|
|
2017-11-08 18:24:30 +00:00
|
|
|
// NOTE(allen|a4.0.22): This no longer serves as very good example code.
|
|
|
|
// Good example code will be coming soon, but in the mean time you can go
|
|
|
|
// to 4coder_remapping_commands.cpp for examples of what binding code looks like.
|
2016-03-24 01:05:28 +00:00
|
|
|
|
2017-11-08 18:24:30 +00:00
|
|
|
#if !defined(NO_BINDING)
|
2016-08-29 02:14:02 +00:00
|
|
|
extern "C" int32_t
|
|
|
|
get_bindings(void *data, int32_t size){
|
2016-05-12 02:15:54 +00:00
|
|
|
Bind_Helper context_ = begin_bind_helper(data, size);
|
|
|
|
Bind_Helper *context = &context_;
|
|
|
|
|
2017-01-29 00:03:23 +00:00
|
|
|
set_all_default_hooks(context);
|
2017-11-15 17:04:23 +00:00
|
|
|
#if defined(__APPLE__) && defined(__MACH__)
|
|
|
|
mac_default_keys(context);
|
|
|
|
#else
|
2016-05-12 02:15:54 +00:00
|
|
|
default_keys(context);
|
2017-11-15 17:04:23 +00:00
|
|
|
#endif
|
2016-05-07 17:25:45 +00:00
|
|
|
|
2016-08-29 02:14:02 +00:00
|
|
|
int32_t result = end_bind_helper(context);
|
2016-05-07 17:25:45 +00:00
|
|
|
return(result);
|
2016-03-15 14:12:06 +00:00
|
|
|
}
|
2016-06-28 22:58:50 +00:00
|
|
|
#endif //NO_BINDING
|
|
|
|
|
|
|
|
#endif //FCODER_DEFAULT_BINDINGS
|
2016-05-12 02:15:54 +00:00
|
|
|
|
2016-03-21 22:27:27 +00:00
|
|
|
// BOTTOM
|
2017-01-29 00:03:23 +00:00
|
|
|
|