Welcome | |
---|---|
Welcome to a320
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today! |
Moderator: Moderators
JeKel wrote:My black Dingoo that I got yesterday still has the Y/B issue.
Dan wrote:retro junkie wrote:I was playing Super Mario World tonight and found that I did not have a problem with my Y and B button while playing this game in the SNES emu.
Are you sure? Can you be holding a shell with Y and jump without letting it go?
retro junkie wrote:I am going to have to get Mario out and stick him in the old SNES that I have hooked up in the living room.
extern "C" void kbd_get_status(KEY_STATUS* ks);
//These are the actual button values
#define SKEY_UP 0x00100000
#define SKEY_DOWN 0x08000000
#define SKEY_RIGHT 0x00040000
#define SKEY_LEFT 0x10000000
#define SKEY_A 0x80000000
#define SKEY_B 0x00200000
#define SKEY_Y 0x00000040
#define SKEY_X 0x00010000
#define SKEY_L 0x00000100
#define SKEY_R 0x20000000
#define SKEY_SELECT 0x00000400
#define SKEY_START 0x00000800
#define SKEY_POWER 0x00000080
//changes to the onkey function to make use of all the buttons on the dingo a320
extern "C" void onkey( Engine* pEng )
{
kbd_get_status( &ks );
if( ks.status & SKEY_LEFT ){
pEng->m_pInput->KeyDown( KEY_LF );
}else{
if( oldks.status & SKEY_LEFT )
pEng->m_pInput->KeyUp( KEY_LF );
}
if( ks.status & SKEY_RIGHT ){
pEng->m_pInput->KeyDown( KEY_RT );
}else{
if( oldks.status & SKEY_RIGHT )
pEng->m_pInput->KeyUp( KEY_RT );
}
if( ks.status & SKEY_UP ){
pEng->m_pInput->KeyDown( KEY_UP );
}else{
if( oldks.status & SKEY_UP )
pEng->m_pInput->KeyUp( KEY_UP );
}
if( ks.status & SKEY_DOWN ){
pEng->m_pInput->KeyDown( KEY_DN );
}else{
if( oldks.status & SKEY_DOWN ) {
pEng->m_pInput->KeyUp( KEY_DN );
}
}
if( ks.status & SKEY_L ){
pEng->m_pInput->KeyDown( KEY_L1 );
}else{
if( oldks.status & SKEY_L )
pEng->m_pInput->KeyUp( KEY_L1 );
}
if( ks.status & SKEY_R ){
pEng->m_pInput->KeyDown( KEY_R1 );
}else{
if( oldks.status & SKEY_R )
pEng->m_pInput->KeyUp( KEY_R1 );
}
if( ks.status & SKEY_A ){
pEng->m_pInput->KeyDown( KEY_1 );
}else{
if( oldks.status & SKEY_A )
pEng->m_pInput->KeyUp( KEY_1 );
}
if( ks.status & SKEY_B){
pEng->m_pInput->KeyDown( KEY_2 );
}else{
if( oldks.status & SKEY_B )
pEng->m_pInput->KeyUp( KEY_2 );
}
if( ks.status & SKEY_Y ){
pEng->m_pInput->KeyDown( KEY_3 );
}else{
if( oldks.status & SKEY_Y )
pEng->m_pInput->KeyUp( KEY_3 );
}
if( ks.status & SKEY_X){
pEng->m_pInput->KeyDown( KEY_4 );
}else{
if( oldks.status & SKEY_X )
pEng->m_pInput->KeyUp( KEY_4 );
}
if( ks.status & SKEY_SELECT) {
pEng->m_pInput->KeyDown( KEY_5 );
}else{
if( oldks.status & SKEY_SELECT )
pEng->m_pInput->KeyUp( KEY_5 );
}
if( ks.status & SKEY_START) {
pEng->m_pInput->KeyDown( KEY_6 );
}else{
if( oldks.status & SKEY_START )
pEng->m_pInput->KeyUp( KEY_6 );
}
if( ks.status & SKEY_POWER) {
pEng->m_pInput->KeyDown( KEY_7 );
}else{
if( oldks.status & SKEY_POWER )
pEng->m_pInput->KeyUp( KEY_7 );
}
oldks = ks;
}
Users browsing this forum: No registered users and 1 guest