PDA

View Full Version : Lost in pop & bumps :s



cparker
2008-05-28, 08:48
Hi,

I'm having problems in creating a plugin, all works fine but my plugin seems to hold the menu system once activated.

I've added this code;
my %functions = (
'left' => sub { my $client = shift; Slim::Buttons::Common::popModeRight($client); },

'right' => sub { my $client = shift; $client->bumpRight(); },
'up' => sub { my $client = shift; $client->bumpUp(); },
'down' => sub { my $client = shift; $client->bumpDown(); },
);

sub getFunctions {
my $class = shift;

return \%functions;
}

But it doesnt make any difference, I get the following errors in debug.

[08-05-28 16:48:10.1532] Slim::Hardware::IR::executeButton (991) Error: Subroutine for irCode: [right] does not exist
[08-05-28 16:48:11.4633] Slim::Hardware::IR::executeButton (991) Error: Subroutine for irCode: [down] does not exist!
[08-05-28 16:48:11.9446] Slim::Hardware::IR::executeButton (991) Error: Subroutine for irCode: [left] does not exist!
[08-05-28 16:48:12.4012] Slim::Hardware::IR::executeButton (991) Error: Subroutine for irCode: [up] does not exist!

What am I missing here? I've looked at many examples and copied the pop code from them, but I always get the same result.

Cheers