Hello all. I realize this is supposed to be Smartphone related, but the game port has transcended that label and works on PPC as well, so...
I have Duke3D working on a Samsung i730 with WM5. It works amazingly well. Many thanks to Roozbeh for resurrecting this classic!
For any others with this phone, here are the relevant config settings:
Change the Escape key to something other than 't'. The letter 't' is needed when typing in Cheat Codes

. I selected 'm', as in - 'menu'. You will have to remove 'm' from the AIM_UP variable.
[Engine Setup]
Alt_EscapeKey = "m"
For Sound, increase the capabilities:
[Sound Setup]
NumVoices = 8
NumChannels = 2
NumBits = 16
MixRate = 22000
The touch screen fires the primary weapon with the default config. Change the touchscreen to OPEN (allows you to open doors, panels, light switches by touching the screen):
[Controls]
MouseButton0 = "Open"
Landscape 2 mode puts the controls on the right (for right handed control). Some buttons are 'Special' buttons and have to be mapped using the 'Scan Code Mapping' feature. More on mapping later.
For reference: sc_74 = 'Launcher Key', sc_14 = 'Context Menu Key', Enter = 'Action Key', VolumeUp = 'Back Key'
[Scan Code Mapping]
sc_74 = "Softkey1"
sc_14 = "Softkey2"
[KeyDefinitions_Landscape2]
Move_Forward = "w" "RIGHT"
Move_Backward = "s" "LEFT"
Turn_Left = "j" "UP"
Turn_Right = "l" "DOWN"
Fire = "k" "ENTER"
Jump = "SPACE" "VolumeUp"
Aim_Up = "" "SOFTKEY1"
Aim_Down = "" "SOFTKEY2"
Could Use Some Help Here
I have not been successful in mapping any other softkeys (Calendar, Contacts, Call, EndCall). The in-game key preview feature (ShowKeyCodes) only shows "Special Key Num=0" for the Calendar and Contacts keys. The Call and EndCall keys show as normal keys. However, putting Call or EndCall in the Duke3d.cfg file doesn't work.
If I put...
Aim_Up = "m" "EndCall"
....and press the EndCall button in the game, nothing happens. I downloaded a program called 'Keycode.exe' that shows what the code is for the softkeys. It shows:
EndCall (Short Press) = Key 0x73 (115) xmacro=k115
EndCall (Long Press) = Key 0x10 (16) xmaro=x16
Call (Short and Long Press) = Key 0x72 (114) xmacro=k114
Calendar (Short Press) = Key 0x5B (91) xmacro=k91 (immediately changes to: Key 0xC2 (194) xmacro=194)
Calendar (Long Press) = Key 0x5B (91) xmacro=k91 (immediately changes to: Key 0xC8 (200) xmacro=k200)
Contacts (Short Press) = Key 0x5B (91) xmacro=k91 (immediately changes to: Key 0xC2 (195) xmacro=195)
Contacts (Long Press) = Key 0x5B (91) xmacro=k91 (immediately changes to: Key 0xC8 (201) xmacro=k201)
None of the Key numbers or names work with Scan Code Mapping so the buttons are not usuable. If anyone figures out the correct values, please post.
Samsung i730:
