Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.3.0 #21

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
d731616
Add KeyboardEvent support
SrMouraSilva Feb 19, 2018
def5106
#6 Create view effects. Tests #5 button support
SrMouraSilva Feb 20, 2018
9cb1e0d
Update package
SrMouraSilva Feb 21, 2018
f629a53
New activities Effect, Param. Update protocol: Add identifier. Create…
SrMouraSilva Feb 21, 2018
71c868e
#6 Effect toggle now send
SrMouraSilva Feb 24, 2018
f73d590
#8 Read plugin data. #6 list pedalboard effects
SrMouraSilva Feb 24, 2018
df8d113
#7 Fix list bug when custom views. #7 Fix ParamDTO get bug when retur…
SrMouraSilva Feb 24, 2018
c4b0102
Ignore messages for not current pedalboard. #7 Toggle param. #Send an…
SrMouraSilva Feb 25, 2018
4256c99
#10 Resume initial tests
SrMouraSilva Feb 25, 2018
e902edf
Improve resume
SrMouraSilva Feb 25, 2018
016118a
#11 Improve resume
SrMouraSilva Feb 25, 2018
ff0b964
#10 #12 Improve param status: Param selected name. Hide params if ped…
SrMouraSilva Feb 25, 2018
654941d
Move files
SrMouraSilva Feb 27, 2018
1b97f65
Create GenericBaseAdapter and GenericViewFilter
SrMouraSilva Feb 27, 2018
d52719a
#12 #10 Resume view: Click a parameter will open a diialog
SrMouraSilva Feb 27, 2018
b2b5a17
#12 Now show dialog and loads the data. #10 Effect now update the status
SrMouraSilva Feb 27, 2018
e3891dd
Improve views: Position and show scroolbar
SrMouraSilva Feb 27, 2018
b01a771
#12 Send and receive param values changes: Partial support
SrMouraSilva Feb 27, 2018
dc32958
#10 Treatment of message events
SrMouraSilva Feb 27, 2018
9c12e5f
ParamsView -> EffectView. #11 EffectView: Add button effect status. R…
SrMouraSilva Feb 28, 2018
eceab7f
Crop long param names. #10 #11 Update dialog when receive EVENT param…
SrMouraSilva Mar 1, 2018
0af2644
#12 Inform the selected item
SrMouraSilva Mar 2, 2018
e0b06f6
#10 #12 Improve selected item. Fix toggle param first click problem.…
SrMouraSilva Mar 3, 2018
b55de52
#4 Show dialog when client disconnect
SrMouraSilva Mar 4, 2018
da0e569
#4 Fix rotate dialog message
SrMouraSilva Mar 4, 2018
f4eb7de
#14 Simple way to check if USB debugging mode are active
SrMouraSilva Mar 4, 2018
d5f85ad
Merge pull request #16 from PedalPi/issue-5-buttons-support
SrMouraSilva Mar 4, 2018
706ab16
Merge pull request #17 from PedalPi/issue-10-resume
SrMouraSilva Mar 4, 2018
1dc4957
#14 Add Configure informations page
SrMouraSilva Mar 4, 2018
8aa8d6c
#14 Add buttons to intent the settings and the help page (developer.a…
SrMouraSilva Mar 5, 2018
f89be51
#14 Improve design
SrMouraSilva Mar 5, 2018
ab55252
#14 Fix activity show info page
SrMouraSilva Mar 6, 2018
a8959bd
Merge pull request #18 from PedalPi/issue-14-usb-debugging
SrMouraSilva Mar 6, 2018
bd9dbe9
#19 USB Acessory initial example
SrMouraSilva Mar 6, 2018
f85bc70
#19 Drop Android 2.3 USB Accessory support. Fix Pedal Pi description …
SrMouraSilva Mar 6, 2018
19f0cba
#20 Readme
SrMouraSilva Mar 6, 2018
27cdaab
#20 Google play image
SrMouraSilva Mar 6, 2018
51f100e
#20 Images size
SrMouraSilva Mar 6, 2018
6a962a9
#20 Images size
SrMouraSilva Mar 6, 2018
ec9526c
#20 Images size - Fix
SrMouraSilva Mar 6, 2018
bee05c6
Merge pull request #24 from PedalPi/issue-20-readme
SrMouraSilva Mar 6, 2018
47e1931
#19 Start refactor for support easly other communication methods
SrMouraSilva Mar 19, 2018
b18c408
#19 Finish refactor necessary to implements other communication proto…
SrMouraSilva Mar 19, 2018
b373aa3
#23 Add license files. Test AOA support. Improve request plugins (onl…
SrMouraSilva Jul 22, 2018
f1547c2
Remove Readme wrong added
SrMouraSilva Jul 22, 2018
1af0320
Merge pull request #25 from PedalPi/issue-19-usb-accessory
SrMouraSilva Jul 22, 2018
0dfafa9
Merge pull request #27 from PedalPi/issue-23-license
SrMouraSilva Jul 22, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#10 Treatment of message events
  • Loading branch information
SrMouraSilva committed Feb 27, 2018
commit dc32958b97f3a5864be055f72ae8c42e9baaf9f2
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,22 @@ class ResumeActivity : AppCompatActivity() {
&& !progress.isShowing) {
update()

} else if (event.type == EventType.BANK) {
Server.sendBroadcast(Messages.CURRENT_PEDALBOARD_DATA)

} else if (event.type == EventType.PEDALBOARD) {
Server.sendBroadcast(Messages.CURRENT_PEDALBOARD_DATA)

} else if (event.type == EventType.EFFECT) {
Server.sendBroadcast(Messages.CURRENT_PEDALBOARD_DATA)

} else if (event.type == EventType.EFFECT_TOGGLE) {
val index = event.content["effect"].int
runOnUiThread { this.effectsView.updateEffectView(index) }

} else if (event.type == EventType.PARAM) {
val index = event.content["param"].int
runOnUiThread { this.paramsView.updateParamView(index) }
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import android.app.Instrumentation
import android.util.Log
import com.github.salomonbrys.kotson.*
import com.google.gson.JsonElement
import io.github.pedalpi.displayview.model.Data
import io.github.pedalpi.displayview.communication.message.request.Messages
import io.github.pedalpi.displayview.communication.message.response.EventMessage
import io.github.pedalpi.displayview.communication.message.response.EventType
import io.github.pedalpi.displayview.communication.message.response.ResponseMessage
import io.github.pedalpi.displayview.communication.message.response.ResponseVerb
import io.github.pedalpi.displayview.model.Data

class ResponseMessageProcessor : Client.OnMessageListener {
var listener : Client.OnMessageListener = Client.OnMessageListener {}
Expand Down Expand Up @@ -75,20 +75,14 @@ class ResponseMessageProcessor : Client.OnMessageListener {
if (!isCurrentBank(event))
return false

//FIXME

} else if (event.type == EventType.PEDALBOARD) {
if (!isCurrentPedalboard(event))
return false

//FIXME

} else if (event.type == EventType.EFFECT) {
if (!isCurrentPedalboard(event))
return false

//FIXME

} else if (event.type == EventType.EFFECT_TOGGLE) {
if (!isCurrentPedalboard(event))
return false
Expand Down