PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

togglemenu doesnt work

at least not on my axim, and I suspect not on other ppcs either...

try this:

bind your aux1 button to the command togglemenu.
then start PQ and get a game loaded and running.

then press the aux1 button. the main menu should come up.

then press aux1 again and see if the menu goes away and you're back in the game.
ok... after playing around some more it looks like the menu button on the display in portrait mode works, i.e., it toggles the main menu on and off. It must execute the c-command menutoggle.

In landscape mode you cant see the menu button and mapping aux1 to the console command togglemenu doesnt work for some reason it doesnt toggle the menu. It just brings up the menu but doesnt get rid of it.

so is there a way to recompile PQ so that the console command togglemenu actually does the same thing as the c-command menutoggle?
Bind aux2 to togglemenu :wink:, that is the only key you can bind to togglemenu that will work properly.

Don't ask me why that isn't part of the default cfg file..
I did a test where I bound Aux 1-4 all to togglemenu.
All bring up the main menu, but none take it away.

I then realized that this must be due to togglemenu being a console command which may not work when the main menu is up.

Still, in portrait mode, the Menu button on the display does toggle the menu on and off.

So if a code change was made that let Aux 1 be able to call the same c-subroutine that is presently called by pressing the menu button on the display.

I saw in the PQ readme.txt file, that togglemenu was fixed to work with aux2 on mips devices...maybe I'll try this on my old cassio e-125.

apparently the record button on the ipaq is used to escape or cancel out of a menu, but the record button on the axim doesnt seem to be seen by PQ or wolf.

so i think togglemenu needs a code change for the axim.

who knows how to do this?

I only paid $175 for my axim 300 (after 10% discount and $50 rebate)...so I cant really complain :)
Yeah, it takes the menu away on my e-125.
Normally in Quake no keybindings are active when the menus or console is up. I had to modify the menu routine to allow a specific key to be bound while the menu was active, so you could exit in landscape mode. Aux2 worked properly on all devices until now...

Dan East
Dan, Thanks for porting the game to the PPC!

There are now thousands of axim owners that can play PQ.

The record button and aux2 dont perform esc or togglemenu on the axim. This means that we can't change any options, because when you go in the option menu to make a change, you can't get back out.

you have to soft reset the device.

Is there a way to see if the record button is sending out a signal that PQ can see?

I was looking at the c-code, and it looks daunting at this point, since I've never programmed games before.

Dell just released a patch that enables the push-in or 5th button on the d-pad, but that is the enter command, like pushing in on the jog-dial.

Do axim users need a special PQ release for the esc to work?
Alright.. I'm going to have you try something very stupid. First, move your config files out of the directory, and make a new autoexec.cfg with the one command "unbindall" Run quake. No buttons will work, however, when you press a button it will tell you it's name. Press each button, and note at the top of the screen, it will say something about "AUXx is unbound" where x is a number. Keep in mind these numbers, go back into the autoexec.cfg, and bind the proper commands to the proper AUXs. If one of the buttons does nothing at all, then it looks like a code mod will have to be made.
ok I did what you said, created autoexec.cfg with only the command unbindall in it (not in quotes). None of the buttons show anthing on the screen. When I start PQ, the demo starts up, and I can tap on menu on the screen to toggle the main menu. once the menu is up I can move up and down the menu using the D-pad and can select an item using the 5th button on the D-pad (i.e., pushing straight in now works after installing the new patch from Dell). So I can start a new single player game. once the new game starts, none of the keys do anything or print anything to the screen. I can still access the main menu by tapping on the on-screen menu button with the stylus, and then exit the game gracefully. None of the buttons work during the demo either.

Any other ideas?

ps. Thanks for thinking about this!
Odd. I haven't a clue why it's not saying the message. Very strange indeed. Any ideas Dan?
It doesn't say "button x unbound" in WinQuake either, after you type unbindalll and try pressing keys. Actually, I have no clue how to get it to say "button x unbound" in quake.. :?
Weird, I swear I saw the message before..

I guess your best bet is to do something like this

bind aux1 "echo aux1"
bind aux2 "echo aux2"
bind aux3 "echo aux3"

etc, go up to around 10 or so.
ok I did like you said for aux1-12, i.e.,
bind aux1 "echo aux1"
bind aux2 "echo aux2"
bind aux3 "echo aux3"
...
bind aux11 "echo aux11"
bind aux12 "echo aux12"

Then I do get the echos, for aux1 through aux4, which are the front 4 buttons on the axim, from left to right. When I press straigt in on the D-pad, I get:
JOY1 IS UNBOUND, HIT F4 TO SET

Pushing straight in on the d-pad gives the same message:
JOY1 IS UNBOUND, HIT F4 TO SET

The directionals on the D-pad turn and move me in the game as normal. Also, the console button on the screen now works, whereas it didn't with only the unbindall command the autoexec.cfg file.

The record button still shows nothing.
scanned the c-source...
In keys.c, found the following:

//Dan East: Allow our skin keys to register when menu is up
#ifdef _ARM_
menubound[K_AUX5]=true;
#elif defined(_MIPS_)
menubound[K_AUX2]=true;
#else
//Don't know what this should be for HP, etc.
menubound[K_AUX5]=true;
#endif

so how can we determine what key the record button is on the axim. The record button does in fact work to bring up the Notes program (without PQ running).

It must not be an aux key.
Then PQ will require an update apparently. I can't help anymore, as I don't have access to the device, nor do I have the ability to write a program that'll figure out what the key does. I think MameCE3 can help, it shows the key's code in the button config.
ok thanks sponge...I'll check out mamece3
by the way, I installed mamece3 and it says that the record key on the axim is 0xCA

so that could be put in the PQ rebuild
That's for sure a different key than the typical, at least on my 3900.