return -1;
}
- cerr << "Path: " << endl;
- for (vector<string>::iterator x = path.begin(); x != path.end(); ++x) {
- cerr << '[' << (*x) << "] ";
- }
- cerr << endl;
-
- cerr << "Rest: " << endl;
- for (vector<string>::iterator x = rest.begin(); x != rest.end(); ++x) {
- cerr << '[' << (*x) << "] ";
- }
- cerr << endl;
-
if (path[0] == "route" || path[0] == "rid") {
_top_level_type = RemoteControlID;
} else if (path[1] == "balance") {
_subtype = Balance;
- } else if (path[1] == "pan") {
- _subtype = Pan;
- _target.push_back (atoi (rest[1]));
+ } else if (path[1] == "panwidth") {
+ _subtype = PanWidth;
+
+ } else if (path[1] == "pandirection") {
+ _subtype = PanDirection;
} else if (path[1] == "plugin") {
if (path.size() == 3 && rest.size() == 3) {