Pearl Posted July 7, 2004 Report Share Posted July 7, 2004 Hi ...I got some special encoders on my MidiboxLC and now I want, that that these encoders send different controller-values depending on the status of the "Shift"-Button. (example: SHIFT "unpressed" -> encoder has controller-value 0x07 [Volumen] or SHIFT = "pressed" -> encoder should have controller-value 0x08 [balance]).How can I get the current status of the SHIFT-Button? Do I have to use a special register to save status from inside "...button.inc", or is there an easier way?thanks Pearl Quote Link to comment Share on other sites More sharing options...
Synapsys Posted July 7, 2004 Report Share Posted July 7, 2004 Hi,Although I am certainly no expert on the LC application code I have looked through the code. I can see no place where the state of the shift button is saved as such. You could call the "MIOS_DIN_PinGet" function with the SRIO pin number of the shift button in WREG. This function will return the state of the pin (and thus the shift button state) in WREG and MIOS_PARAMETER.Hope this is useful :) Quote Link to comment Share on other sites More sharing options...
Pearl Posted July 7, 2004 Author Report Share Posted July 7, 2004 Hi ...thanx for the topic :D , I will try it today.Bye Pearl Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.