Changeset 750


Ignore:
Timestamp:
Mar 28, 2011, 1:31:50 AM (11 years ago)
Author:
sam
Message:

monsterz: do not display mouse pointer or grab handle on touch devices.

Location:
trunk/monsterz
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/interface.cpp

    r743 r750  
    103103    Scene::GetDefault()->AddTile((data->screen << 16) | 0, 0, 0, 10, 0);
    104104
    105     if (mouse.x >= 0 && mouse.y >= 0)
     105    if (Platform::GetMouseCount() && mouse.x >= 0 && mouse.y >= 0)
    106106    {
    107107        vec2i m = mouse + vec2i(-6, 6 - 48);
  • trunk/monsterz/piece.cpp

    r737 r750  
    391391        Scene::GetDefault()->AddTile((data->tiler << 16) | id, x, y, z, 0);
    392392
    393     if (data->state == PieceData::GRAB)
     393    if (data->state == PieceData::GRAB && Platform::GetMouseCount())
    394394        Scene::GetDefault()->AddTile((data->tiler << 16) | 0, x, y, 9, 0);
    395395}
Note: See TracChangeset for help on using the changeset viewer.