ΠΠ· ΡΠΊΡΠΈΠΏΡΠ° ΡΡ ΠΌΠΎΠΆΠ΅ΡΡ ΠΏΠΎΠ»ΡΡΠ°ΡΡ Π΄Π°Π½Π½ΡΠ΅ ΠΎ Π½Π°ΠΆΠΈΠΌΠ°Π΅ΠΌΡΡ
ΠΊΠ»Π°Π²ΠΈΡΠ°Ρ
Π½Π° ΠΊΠ»Π°Π²ΠΈΠ°ΡΡΡΠ΅, ΡΠ΅Π»ΡΠΊΠ°Ρ
ΠΌΡΡΠΈ ΠΈΠ»ΠΈ ΡΡΠΈΠ»ΡΡΠ° ΠΈ ΡΠ΅Π°Π³ΠΈΡΠΎΠ²Π°ΡΡ Π½Π° Π½ΠΈΡ
Π½ΡΠΆΠ½ΡΠΌ ΡΠ΅Π±Π΅ ΡΠΏΠΎΡΠΎΠ±ΠΎΠΌ. ΠΠ°ΠΊ ΡΡΠΎ ΡΠ΄Π΅Π»Π°ΡΡ?
ΠΡΠΎΡΡΠΎΠΉ ΠΏΡΠΈΠΌΠ΅Ρ:
Debug dbg;
DebugLog log = dbg.log();
void main() {
log.clear();
for( int i = 0; i < 1000; i++ ) {
float x = GetMouseX();
float y = GetMouseY();
log += "mouse coord " + x + " " + y;
Wait( 50 );
}
}
Π§ΡΠΎΠ±Ρ ΡΠ²ΠΈΠ΄Π΅ΡΡ, ΡΡΠΎ ΠΆΠ΅ Π½Π°ΠΏΠ΅ΡΠ°ΡΠ°Π»ΠΎΡΡ Π² Π»ΠΎΠ³, Π²ΡΠ±Π΅ΡΠΈ Π² ΠΌΠ΅Π½Ρ 3DCoat "Π‘ΠΊΡΠΈΠΏΡΡ / ΠΠΎΡΠΌΠΎΡΡΠ΅ΡΡ ΠΆΡΡΠ½Π°Π» Π²ΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΡ".
ΠΠΎΡΠΌΠΎΡΡΠΈ ΠΈ Π½Π° ΡΡΠΈ ΡΡΠ½ΠΊΡΠΈΠΈ:
DEPRECATED float GetMouseX()
DEPRECATED float GetMouseY()
DEPRECATED float GetPressure()
DEPRECATED bool LMBPressed()
DEPRECATED bool RMBPressed()
DEPRECATED bool MMBPressed();
DEPRECATED float GetVisiblePenRadius();
DEPRECATED void StartStroke(float x,float y,float Pressure)
DEPRECATED void DrawStrokeTo(float x,float y,float Pressure)
DEPRECATED void EndStroke()
DEPRECATED bool ScreenRayPicksObject(float x,float y)
DEPRECATED bool WasRecentlyPressed(string &in ID,float Time);
DEPRECATED bool WasRecentlyRMBPressed(string &in ID,float Time);
DEPRECATED bool IsInTool(string &in ToolID);
DEPRECATED string GetCurrentToolID ();
DEPRECATED float GetTimeSinceStart();