4coder/4coder_default_bindings.cpp

37 lines
895 B
C++

/*
4coder_default_bidings.cpp - Supplies the default bindings used for default 4coder behavior.
*/
// TOP
#if !defined(FCODER_DEFAULT_BINDINGS_CPP)
#define FCODER_DEFAULT_BINDINGS_CPP
#include "4coder_default_include.cpp"
// 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.
#if !defined(NO_BINDING)
extern "C" i32
get_bindings(void *data, i32 size){
Bind_Helper context_ = begin_bind_helper(data, size);
Bind_Helper *context = &context_;
set_all_default_hooks(context);
#if defined(__APPLE__) && defined(__MACH__)
mac_default_keys(context);
#else
default_keys(context);
#endif
return(end_bind_helper(context));
}
#endif //NO_BINDING
#endif //FCODER_DEFAULT_BINDINGS
// BOTTOM