Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **************************
- ---- DcsBios.cpp---------
- ***************************
- [...]
- ActionButtonSR::ActionButtonSR(char* msg, char* arg, char srinput) {
- msg_ = msg;
- arg_ = arg;
- srinput_ = srinput;
- pinValues_ = pinValues;
- lastState_ = pinValues_ & (1<< srinput_);
- }
- void ActionButtonSR::pollInput() {
- int state = pinValues & (1<< srinput_);
- if (state != lastState_) {
- if (lastState_ != 0 && state == 0) {
- sendDcsBiosMessage(msg_, arg_);
- }
- }
- lastState_ = state;
- }
- [...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement