forked from cafeberry/cafeberry
added some kbm stuff
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include "..\..\..\Minecraft.World\net.minecraft.world.inventory.h"
|
||||
#include "..\..\..\Minecraft.World\net.minecraft.world.item.h"
|
||||
|
||||
#ifdef __PSVITA__
|
||||
#if defined(__PSVITA__) || defined(_WINDOWS64)
|
||||
#define GAME_CREATIVE_TOUCHUPDATE_TIMER_ID 0
|
||||
#define GAME_CREATIVE_TOUCHUPDATE_TIMER_TIME 100
|
||||
#endif
|
||||
@@ -54,7 +54,7 @@ UIScene_CreativeMenu::UIScene_CreativeMenu(int iPad, void *_initData, UILayer *p
|
||||
m_curTab = eCreativeInventoryTab_COUNT;
|
||||
switchTab(eCreativeInventoryTab_BuildingBlocks);
|
||||
|
||||
#ifdef __PSVITA__
|
||||
#if defined(__PSVITA__) || defined(_WINDOWS64)
|
||||
// initialise vita touch controls with ids
|
||||
for(unsigned int i = 0; i < ETouchInput_Count; ++i)
|
||||
{
|
||||
@@ -75,7 +75,7 @@ wstring UIScene_CreativeMenu::getMoviePath()
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __PSVITA__
|
||||
#if defined(__PSVITA__) || defined(_WINDOWS64)
|
||||
UIControl* UIScene_CreativeMenu::GetMainPanel()
|
||||
{
|
||||
return &m_controlMainPanel;
|
||||
@@ -117,6 +117,7 @@ void UIScene_CreativeMenu::handleTouchInput(unsigned int iPad, S32 x, S32 y, int
|
||||
void UIScene_CreativeMenu::handleTouchBoxRebuild()
|
||||
{
|
||||
addTimer(GAME_CREATIVE_TOUCHUPDATE_TIMER_ID,GAME_CREATIVE_TOUCHUPDATE_TIMER_TIME);
|
||||
UIScene::handleTouchBoxRebuild();
|
||||
}
|
||||
|
||||
void UIScene_CreativeMenu::handleTimerComplete(int id)
|
||||
@@ -326,10 +327,12 @@ void UIScene_CreativeMenu::GetItemScreenData( ESceneSection eSection, int iItemI
|
||||
case eSectionInventoryCreativeSelector:
|
||||
sectionSize.x = m_slotListContainer.getWidth();
|
||||
sectionSize.y = m_slotListContainer.getHeight();
|
||||
FixSlotGridSize(eSection, m_slotListContainer, sectionSize);
|
||||
break;
|
||||
case eSectionInventoryCreativeUsing:
|
||||
sectionSize.x = m_slotListHotbar.getWidth();
|
||||
sectionSize.y = m_slotListHotbar.getHeight();
|
||||
FixSlotGridSize(eSection, m_slotListHotbar, sectionSize);
|
||||
break;
|
||||
case eSectionInventoryCreativeTab_0:
|
||||
sectionSize.x = m_TouchInput[ETouchInput_TouchPanel_0].getWidth();
|
||||
|
||||
Reference in New Issue
Block a user